mirror of
https://github.com/Spythere/stacjownik.git
synced 2026-05-03 21:38:13 +00:00
szybkie filtry (wip)
This commit is contained in:
@@ -58,6 +58,19 @@ export const useStationFiltersStore = defineStore('stationFiltersStore', {
|
||||
});
|
||||
},
|
||||
|
||||
handleQuickAction(actionName: string) {
|
||||
switch (actionName) {
|
||||
case 'all-available':
|
||||
this.resetFilters();
|
||||
|
||||
this.changeFilterValue({ name: 'non-public', value: false });
|
||||
break;
|
||||
|
||||
default:
|
||||
break;
|
||||
}
|
||||
},
|
||||
|
||||
changeFilterValue(filter: { name: string; value: any }) {
|
||||
this.filters[filter.name] = filter.value;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user