mirror of
https://github.com/hay-kot/mealie.git
synced 2025-08-22 14:33:33 -07:00
format
This commit is contained in:
parent
be2f3f7978
commit
dd3bf23ce5
1 changed files with 7 additions and 10 deletions
|
@ -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;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue