Added timing as constant

This commit is contained in:
Wolfgang Huß 2019-09-20 09:19:35 +02:00
parent f968c12ccf
commit ca8bb9e434
2 changed files with 3 additions and 1 deletions

View File

@ -18,6 +18,7 @@
<script>
import Dropdown from '~/components/Dropdown'
import { REFRECH_MILISEC } from '~/constants/notifications'
import { notificationQuery, markAsReadMutation } from '~/graphql/User'
import NotificationList from '../NotificationList/NotificationList'
@ -36,7 +37,7 @@ export default {
placement: { type: String },
},
created() {
setInterval(this.updateNotifications, 10000)
setInterval(this.updateNotifications, REFRECH_MILISEC)
},
destroyed() {
clearInterval(this.updateNotifications)

View File

@ -0,0 +1 @@
export const REFRECH_MILISEC = '60000'