This commit is contained in:
hay-kot 2021-04-05 18:45:09 -08:00
commit dd3bf23ce5

View file

@ -13,7 +13,7 @@
:solo="solo" :solo="solo"
:return-object="returnObject" :return-object="returnObject"
:flat="flat" :flat="flat"
@input="emitChange" @change="emitChange"
> >
<template v-slot:selection="data"> <template v-slot:selection="data">
<v-chip <v-chip
@ -27,8 +27,8 @@
> >
{{ data.item.name }} {{ data.item.name }}
</v-chip> </v-chip>
</template></v-select </template>
> </v-select>
</template> </template>
<script> <script>
@ -72,13 +72,10 @@ export default {
return this.tagSelector ? "Tags" : "Categories"; return this.tagSelector ? "Tags" : "Categories";
}, },
activeItems() { activeItems() {
return this.tagSelector ? this.allTags : this.allCategories; if (this.tagSelector) return this.$store.getters.getAllTags;
}, else {
allCategories() { return this.$store.getters.getAllCategories;
return this.$store.getters.getAllCategories; }
},
allTags() {
return this.$store.getters.getAllTags;
}, },
flat() { flat() {
return this.selected.length > 0 && this.solo; return this.selected.length > 0 && this.solo;