<SearchInput
class="navbar-item is-inline-block-mobile"
- :hotkey="config.hotkey.search"
+ :hotkey="searchHotkey()"
@input="filterServices"
@search-focus="showMenu = true"
@search-open="navigateToFirstService"
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;
window.location.href = response.url;
return;
}
+
if (!response.ok) {
throw Error(`${response.statusText}: ${response.body}`);
}