aboutsummaryrefslogtreecommitdiff
path: root/viewer/src/components/LdTagInput.vue
diff options
context:
space:
mode:
authorZero~Informatique2020-02-27 17:23:32 +0100
committerZero~Informatique2020-02-27 17:53:41 +0100
commit7c2a2ff46469d5e8f44fb3ec7feae5f798e0baf8 (patch)
tree9b4c12bd263013687f8cec3f0002122bd458aa49 /viewer/src/components/LdTagInput.vue
parentd862c99d6ee74f25261c00fcfee3a6e551501f16 (diff)
downloadldgallery-7c2a2ff46469d5e8f44fb3ec7feae5f798e0baf8.tar.gz
viewer: architectural fixes and improvements
Make use of VueX's strict mode (which is different from vuex-class-component strict mode) Fixed issues and bad-practices with search filter tags mutations Correctly implement the new index.json format
Diffstat (limited to 'viewer/src/components/LdTagInput.vue')
-rw-r--r--viewer/src/components/LdTagInput.vue4
1 files changed, 2 insertions, 2 deletions
diff --git a/viewer/src/components/LdTagInput.vue b/viewer/src/components/LdTagInput.vue
index ad0845e..b2a2c58 100644
--- a/viewer/src/components/LdTagInput.vue
+++ b/viewer/src/components/LdTagInput.vue
@@ -38,7 +38,7 @@
38</template> 38</template>
39 39
40<script lang="ts"> 40<script lang="ts">
41import { Component, Vue, Model, Prop } from "vue-property-decorator"; 41import { Component, Vue, Prop, PropSync } from "vue-property-decorator";
42import { Operation } from "@/@types/Operation"; 42import { Operation } from "@/@types/Operation";
43import Navigation from "@/services/navigation"; 43import Navigation from "@/services/navigation";
44import IndexFactory from "@/services/indexfactory"; 44import IndexFactory from "@/services/indexfactory";
@@ -46,7 +46,7 @@ import IndexFactory from "@/services/indexfactory";
46@Component 46@Component
47export default class LdTagInput extends Vue { 47export default class LdTagInput extends Vue {
48 @Prop({ required: true }) readonly tagsIndex!: Tag.Index; 48 @Prop({ required: true }) readonly tagsIndex!: Tag.Index;
49 @Model() model!: Tag.Search[]; 49 @PropSync("searchFilters", { type: Array, required: true }) model!: Tag.Search[];
50 50
51 filteredTags: Tag.Search[] = []; 51 filteredTags: Tag.Search[] = [];
52 52