users store unit tests
This commit is contained in:
parent
24b0f98ef0
commit
975b338586
16 changed files with 1804 additions and 727 deletions
|
|
@ -96,7 +96,7 @@ export const useAnnouncementsStore = defineStore('announcements', {
|
|||
this.announcements[index].read = true
|
||||
})
|
||||
},
|
||||
startFetchingAnnouncements() {
|
||||
startFetching() {
|
||||
if (this.fetchAnnouncementsTimer) {
|
||||
return
|
||||
}
|
||||
|
|
@ -109,7 +109,7 @@ export const useAnnouncementsStore = defineStore('announcements', {
|
|||
|
||||
return this.fetchAnnouncements()
|
||||
},
|
||||
stopFetchingAnnouncements() {
|
||||
stopFetching() {
|
||||
const interval = this.fetchAnnouncementsTimer
|
||||
this.fetchAnnouncementsTimer = undefined
|
||||
clearInterval(interval)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue