forked from extern/homer
Merged main, fixed hotkey support
This commit is contained in:
parent
3668050ba3
commit
446e78d2ab
@ -41,7 +41,7 @@
|
|||||||
|
|
||||||
<SearchInput
|
<SearchInput
|
||||||
class="navbar-item is-inline-block-mobile"
|
class="navbar-item is-inline-block-mobile"
|
||||||
:hotkey="config.hotkey.search"
|
:hotkey=searchHotkey()
|
||||||
@input="filterServices"
|
@input="filterServices"
|
||||||
@search-focus="showMenu = true"
|
@search-focus="showMenu = true"
|
||||||
@search-open="navigateToFirstService"
|
@search-open="navigateToFirstService"
|
||||||
@ -168,6 +168,11 @@ export default {
|
|||||||
window.onhashchange = this.buildDashboard;
|
window.onhashchange = this.buildDashboard;
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
searchHotkey() {
|
||||||
|
if (this.config.hotkey && this.config.hotkey.search) {
|
||||||
|
return this.config.hotkey.search;
|
||||||
|
}
|
||||||
|
},
|
||||||
buildDashboard: async function () {
|
buildDashboard: async function () {
|
||||||
const defaults = jsyaml.load(defaultConfig);
|
const defaults = jsyaml.load(defaultConfig);
|
||||||
let config;
|
let config;
|
||||||
|
Loading…
Reference in New Issue
Block a user