1
0

feat: formatting

- remove unneeded data props
- prepare for compiler warnings vue3; see https://v3.vuejs.org/guide/migration/v-bind.html
This commit is contained in:
Dominik Pschenitschni
2021-09-08 11:59:46 +02:00
committed by kolaente
parent 4454e6cf22
commit 0da7a46612
15 changed files with 30 additions and 38 deletions

View File

@ -54,6 +54,8 @@ import names from '@/models/constants/notificationNames.json'
import {closeWhenClickedOutside} from '@/helpers/closeWhenClickedOutside'
import {mapState} from 'vuex'
const LOAD_NOTIFICATIONS_INTERVAL = 10000
export default {
name: 'notifications',
components: {User},
@ -71,7 +73,7 @@ export default {
mounted() {
this.loadNotifications()
document.addEventListener('click', this.hidePopup)
this.interval = setInterval(this.loadNotifications, 10000)
this.interval = setInterval(this.loadNotifications, LOAD_NOTIFICATIONS_INTERVAL)
},
beforeDestroy() {
document.removeEventListener('click', this.hidePopup)