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