update library tags handling

This commit is contained in:
axolotle
2021-06-14 16:59:32 +02:00
parent 98bcb7f703
commit fb7aa12bd9
3 changed files with 26 additions and 12 deletions
+12 -4
View File
@@ -23,7 +23,7 @@
>
<multiple-tags-select
id="tags-select" :button-text="$t('options.filters.choices.tags')"
v-model="selectedTags" :options="tagsOptions"
v-model="activeTags" :options="tagsOptions"
/>
</b-form-group>
@@ -94,12 +94,13 @@ export default {
computed: {
...mapGetters([
'nodesDepartsOptions',
'tagsOptions',
'nodebook',
'mode',
'nodeDepartId',
'search',
'nodebook',
'nodesDepartsOptions',
'tagsOptions'
'tags'
]),
show () {
@@ -125,6 +126,13 @@ export default {
set (value) {
this.$store.commit('SET_SEARCH', value)
}
},
activeTags: {
get () { return this.tags },
set (value) {
this.$store.commit('UPDATE_TAGS', value)
}
}
}
}