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() {
document.addEventListener('click', this.hideDatePopup)
},
beforeDestroy() {
beforeUnmount() {
document.removeEventListener('click', this.hideDatePopup)
},
watch: {

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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