Skip to content

Commit

Permalink
feat: merge TagsCollection in search buffer
Browse files Browse the repository at this point in the history
  • Loading branch information
AlejandroAkbal committed Mar 1, 2021
1 parent 6ffebfc commit 517648d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
1 change: 1 addition & 0 deletions components/pages/posts/navigation/search/Search.vue
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@
<SearchTagCollections
v-if="tagCollections.isActive"
@toggleTagCollections="toggleTagCollections"
@mergeToSearchTags="mergeSearchTags"
/>
</transition>
</aside>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,11 +82,13 @@ export default {
methods: {
...mapActions('booru', ['tagsManager']),
async addTagCollectionToTags(tagCollectionIndex) {
await this.tagsManager({
operation: 'merge',
value: this.getTagCollections[tagCollectionIndex].tags,
})
addTagCollectionToTags(tagCollectionIndex) {
this.$emit(
'mergeToSearchTags',
this.getTagCollections[tagCollectionIndex].tags
)
this.toggleTagCollections()
},
toggleTagCollections() {
Expand Down

0 comments on commit 517648d

Please sign in to comment.