Merged main, fixed hotkey support

This commit is contained in:
Robin Schneider 2021-10-12 14:36:22 +02:00
parent 3668050ba3
commit 446e78d2ab

View File

@ -41,7 +41,7 @@
<SearchInput
class="navbar-item is-inline-block-mobile"
:hotkey="config.hotkey.search"
:hotkey=searchHotkey()
@input="filterServices"
@search-focus="showMenu = true"
@search-open="navigateToFirstService"
@ -168,6 +168,11 @@ export default {
window.onhashchange = this.buildDashboard;
},
methods: {
searchHotkey() {
if (this.config.hotkey && this.config.hotkey.search) {
return this.config.hotkey.search;
}
},
buildDashboard: async function () {
const defaults = jsyaml.load(defaultConfig);
let config;