fix: life cycle hook naming

This commit is contained in:
Dominik Pschenitschni 2021-08-19 21:36:09 +02:00
parent db49b9b532
commit ecc3d3cf3f
No known key found for this signature in database
GPG key ID: B257AC0149F43A77
7 changed files with 7 additions and 7 deletions

View file

@ -153,7 +153,7 @@ export default {
mounted() { mounted() {
document.addEventListener('click', this.hideDatePopup) document.addEventListener('click', this.hideDatePopup)
}, },
beforeDestroy() { beforeUnmount() {
document.removeEventListener('click', this.hideDatePopup) document.removeEventListener('click', this.hideDatePopup)
}, },
watch: { watch: {

View file

@ -191,7 +191,7 @@ export default {
mounted() { mounted() {
document.addEventListener('click', this.hideSearchResultsHandler) document.addEventListener('click', this.hideSearchResultsHandler)
}, },
beforeDestroy() { beforeUnmount() {
document.removeEventListener('click', this.hideSearchResultsHandler) document.removeEventListener('click', this.hideSearchResultsHandler)
}, },
watch: { watch: {

View file

@ -27,7 +27,7 @@ export default {
mounted() { mounted() {
document.addEventListener('click', this.hidePopup) document.addEventListener('click', this.hidePopup)
}, },
beforeDestroy() { beforeUnmount() {
document.removeEventListener('click', this.hidePopup) document.removeEventListener('click', this.hidePopup)
}, },
watch: { watch: {

View file

@ -28,7 +28,7 @@ export default {
mounted() { mounted() {
document.addEventListener('click', this.hide) document.addEventListener('click', this.hide)
}, },
beforeDestroy() { beforeUnmount() {
document.removeEventListener('click', this.hide) document.removeEventListener('click', this.hide)
}, },
props: { props: {

View file

@ -72,7 +72,7 @@ export default {
document.addEventListener('click', this.hidePopup) document.addEventListener('click', this.hidePopup)
this.interval = setInterval(this.loadNotifications, LOAD_NOTIFICATIONS_INTERVAL) this.interval = setInterval(this.loadNotifications, LOAD_NOTIFICATIONS_INTERVAL)
}, },
beforeDestroy() { beforeUnmount() {
document.removeEventListener('click', this.hidePopup) document.removeEventListener('click', this.hidePopup)
clearInterval(this.interval) clearInterval(this.interval)
}, },

View file

@ -83,7 +83,7 @@ export default {
this.changeInterval = setInterval(this.updateDueDate, 1000) this.changeInterval = setInterval(this.updateDueDate, 1000)
}, },
beforeDestroy() { beforeUnmount() {
if (this.changeInterval) { if (this.changeInterval) {
clearInterval(this.changeInterval) clearInterval(this.changeInterval)
} }

View file

@ -149,7 +149,7 @@ export default {
this.task = this.theTask this.task = this.theTask
document.addEventListener('click', this.hideDeferDueDatePopup) document.addEventListener('click', this.hideDeferDueDatePopup)
}, },
beforeDestroy() { beforeUnmount() {
document.removeEventListener('click', this.hideDeferDueDatePopup) document.removeEventListener('click', this.hideDeferDueDatePopup)
}, },
computed: { computed: {