mirror of
https://github.com/IT4Change/Ocelot-Social.git
synced 2025-12-13 07:45:56 +00:00
Added timing as constant
This commit is contained in:
parent
f968c12ccf
commit
ca8bb9e434
@ -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)
|
||||
|
||||
1
webapp/constants/notifications.js
Normal file
1
webapp/constants/notifications.js
Normal file
@ -0,0 +1 @@
|
||||
export const REFRECH_MILISEC = '60000'
|
||||
Loading…
x
Reference in New Issue
Block a user