fix: life cycle hook naming

This commit is contained in:
Dominik Pschenitschni 2021-08-19 21:36:09 +02:00
parent db49b9b532
commit ecc3d3cf3f
Signed by: dpschen
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: {