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