aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorRobin Schneider <robin-schneider@outlook.de>2021-10-12 14:36:22 +0200
committerRobin Schneider <robin-schneider@outlook.de>2021-10-12 14:36:22 +0200
commit446e78d2ab78b19a621e4a66297f774de1041c01 (patch)
tree0ec03cf4ccec28c97249d651df2dca85cdc9f302 /src
parent3668050ba36c8510294a21bfe57e1f35c63bc76b (diff)
downloadhomer-446e78d2ab78b19a621e4a66297f774de1041c01.tar.gz
homer-446e78d2ab78b19a621e4a66297f774de1041c01.tar.zst
homer-446e78d2ab78b19a621e4a66297f774de1041c01.zip
Merged main, fixed hotkey support
Diffstat (limited to 'src')
-rw-r--r--src/App.vue7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/App.vue b/src/App.vue
index a0de338..5c62a7f 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -41,7 +41,7 @@
41 41
42 <SearchInput 42 <SearchInput
43 class="navbar-item is-inline-block-mobile" 43 class="navbar-item is-inline-block-mobile"
44 :hotkey="config.hotkey.search" 44 :hotkey=searchHotkey()
45 @input="filterServices" 45 @input="filterServices"
46 @search-focus="showMenu = true" 46 @search-focus="showMenu = true"
47 @search-open="navigateToFirstService" 47 @search-open="navigateToFirstService"
@@ -168,6 +168,11 @@ export default {
168 window.onhashchange = this.buildDashboard; 168 window.onhashchange = this.buildDashboard;
169 }, 169 },
170 methods: { 170 methods: {
171 searchHotkey() {
172 if (this.config.hotkey && this.config.hotkey.search) {
173 return this.config.hotkey.search;
174 }
175 },
171 buildDashboard: async function () { 176 buildDashboard: async function () {
172 const defaults = jsyaml.load(defaultConfig); 177 const defaults = jsyaml.load(defaultConfig);
173 let config; 178 let config;