Fix batch mark as finished and clear selection #490

This commit is contained in:
advplyr 2022-04-23 17:17:05 -05:00
parent c5a9c2bf5a
commit ebc9e1a888
4 changed files with 7 additions and 4 deletions

View file

@ -94,6 +94,9 @@ export default {
}
},
methods: {
clearSelectedEntities() {
this.updateSelectionMode(false)
},
editAuthor(author) {
this.selectedAuthor = author
this.showAuthorModal = true
@ -181,9 +184,11 @@ export default {
}
},
mounted() {
this.$eventBus.$on('bookshelf-clear-selection', this.clearSelectedEntities)
this.$eventBus.$on('item-selected', this.itemSelectedEvt)
},
beforeDestroy() {
this.$eventBus.$off('bookshelf-clear-selection', this.clearSelectedEntities)
this.$eventBus.$off('item-selected', this.itemSelectedEvt)
}
}