diff --git a/src/components/StationsView/StationFilterCard.vue b/src/components/StationsView/StationFilterCard.vue index 499ae13..67d21f3 100644 --- a/src/components/StationsView/StationFilterCard.vue +++ b/src/components/StationsView/StationFilterCard.vue @@ -30,7 +30,8 @@

-
+ +

diff --git a/src/store/stationFiltersStore.ts b/src/store/stationFiltersStore.ts index f57147c..d1a9bf4 100644 --- a/src/store/stationFiltersStore.ts +++ b/src/store/stationFiltersStore.ts @@ -58,17 +58,24 @@ export const useStationFiltersStore = defineStore('stationFiltersStore', { }); }, + // Quick actions (TODO) handleQuickAction(actionName: string) { - switch (actionName) { - case 'all-available': - this.resetFilters(); - - // this.changeFilterValue('non-public', false); - break; - - default: - break; - } + // switch (actionName) { + // case 'all-available': + // this.resetFilters(); + // this.inputs.options + // .filter((option) => /^(free|non-public)/.test(option.id)) + // .forEach((option) => (option.value = !option.defaultValue)); + // break; + // case 'all-free': + // this.resetFilters(); + // this.inputs.options + // .filter((option) => /^(free|occupied)/.test(option.id)) + // .forEach((option) => (option.value = !option.defaultValue)); + // break; + // default: + // break; + // } }, changeFilterValue(name: string, value: any) {