Update:Remove call to server for user settings, user settings stored locally

This commit is contained in:
advplyr 2022-12-17 14:50:01 -06:00
parent 415dda37a4
commit 7852804a9c
8 changed files with 57 additions and 69 deletions

View file

@ -367,11 +367,11 @@ export default {
},
mounted() {
this.init()
this.$store.commit('user/addSettingsListener', { id: 'bookshelftoolbar', meth: this.settingsUpdated })
this.$eventBus.$on('user-settings', this.settingsUpdated)
this.$eventBus.$on('bookshelf-total-entities', this.setBookshelfTotalEntities)
},
beforeDestroy() {
this.$store.commit('user/removeSettingsListener', 'bookshelftoolbar')
this.$eventBus.$off('user-settings', this.settingsUpdated)
this.$eventBus.$off('bookshelf-total-entities', this.setBookshelfTotalEntities)
}
}