fix: Duplicate intervals (#689) @Larsluph

This commit is contained in:
Rémi Marseault 2023-03-04 10:29:25 +01:00 committed by GitHub
parent 763c3d31e0
commit a822702e69
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 7 deletions

View file

@ -289,13 +289,13 @@ export default {
}
},
mounted() {
this.$store.dispatch('INIT_INTERVALS')
document.addEventListener('keydown', this.handleKeyboardShortcut)
document.addEventListener('dragenter', this.detectDragEnter)
this.$store.state.selectMode = false
window.scrollTo(0, 0)
},
created() {
this.$store.dispatch('INIT_INTERVALS')
this.$store.commit('FETCH_CATEGORIES')
this.$store.commit('FETCH_TAGS')
if (this.input) this.searchFilterEnabled = true

View file

@ -84,16 +84,12 @@ export default {
}
},
mounted() {
this.$store.dispatch('INIT_INTERVALS')
document.addEventListener('keydown', this.handleKeyboardShortcut)
},
created() {
this.$store.dispatch('INIT_INTERVALS')
},
beforeDestroy() {
document.removeEventListener('keydown', this.handleKeyboardShortcut)
},
destroyed() {
this.$store.commit('REMOVE_INTERVALS')
document.removeEventListener('keydown', this.handleKeyboardShortcut)
},
methods: {
close() {