diff --git a/app/components/app-header.gjs b/app/components/app-header.gjs index 3748e1d..cbc771c 100644 --- a/app/components/app-header.gjs +++ b/app/components/app-header.gjs @@ -10,6 +10,7 @@ import CategoryChips from '#components/category-chips'; export default class AppHeaderComponent extends Component { @service storage; + @service settings; @tracked isUserMenuOpen = false; @tracked searchQuery = ''; @@ -49,9 +50,11 @@ export default class AppHeaderComponent extends Component { /> -
- -
+ {{#if this.settings.showQuickSearchButtons}} +
+ +
+ {{/if}}
diff --git a/app/components/app-menu/settings.gjs b/app/components/app-menu/settings.gjs index e4cfdbc..1e5f909 100644 --- a/app/components/app-menu/settings.gjs +++ b/app/components/app-menu/settings.gjs @@ -18,6 +18,11 @@ export default class AppMenuSettings extends Component { this.settings.updateMapKinetic(event.target.value === 'true'); } + @action + toggleQuickSearchButtons(event) { + this.settings.updateShowQuickSearchButtons(event.target.value === 'true'); + } + @action updatePhotonApi(event) { this.settings.updatePhotonApi(event.target.value); @@ -36,6 +41,30 @@ export default class AppMenuSettings extends Component {