mirror of
https://github.com/Spythere/stacjownik.git
synced 2026-05-03 13:28:11 +00:00
format & lint
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
<template>
|
||||
<label @dblclick="handleDbClick">
|
||||
<input v-model="option.value" type="checkbox" :class="option.section" :name="option.id" />
|
||||
<input type="checkbox" :class="option.section" :name="option.id" />
|
||||
<span>
|
||||
{{ $t(`filters.${option.id}`) }}
|
||||
</span>
|
||||
@@ -23,20 +23,20 @@ export default defineComponent({
|
||||
props: {
|
||||
option: {
|
||||
type: Object as () => FilterOption,
|
||||
required: true,
|
||||
},
|
||||
required: true
|
||||
}
|
||||
},
|
||||
|
||||
setup() {
|
||||
return {
|
||||
filterStore: useStationFiltersStore(),
|
||||
filterStore: useStationFiltersStore()
|
||||
};
|
||||
},
|
||||
|
||||
watch: {
|
||||
'option.value'() {
|
||||
this.filterStore.changeFilterValue(this.option.name, !this.option.value);
|
||||
},
|
||||
}
|
||||
},
|
||||
|
||||
methods: {
|
||||
@@ -44,7 +44,7 @@ export default defineComponent({
|
||||
e.preventDefault();
|
||||
|
||||
this.filterStore.lastClickedFilterId = this.option.id;
|
||||
this.option.value = true;
|
||||
// this.option.value = true;
|
||||
|
||||
this.filterStore.inputs.options
|
||||
.filter((option) => {
|
||||
@@ -53,8 +53,8 @@ export default defineComponent({
|
||||
.forEach((option) => {
|
||||
option.value = !this.option.value;
|
||||
});
|
||||
},
|
||||
},
|
||||
}
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
@@ -96,4 +96,3 @@ label {
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user