mirror of
https://github.com/bastienwirtz/homer.git
synced 2024-11-07 16:54:00 +01:00
Merged main, fixed hotkey support
This commit is contained in:
parent
3668050ba3
commit
446e78d2ab
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user