mirror of
https://github.com/Spythere/stacjownik.git
synced 2026-05-03 13:28:11 +00:00
szybkie filtry (wip)
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user