Make stop_refresh an object that can be modified from another module
This commit is contained in:
parent
ef1eafb789
commit
38c0a5ceee
7 changed files with 8 additions and 7 deletions
|
|
@ -1,4 +1,5 @@
|
|||
import { challengeInfo } from '$lib/stores/challengeinfo.js';
|
||||
import { stop_refresh } from '$lib/stores/common';
|
||||
import { issuesStore } from '$lib/stores/issues.js';
|
||||
import { my } from '$lib/stores/my.js';
|
||||
import { teamsStore } from '$lib/stores/teams.js';
|
||||
|
|
@ -14,7 +15,7 @@ export async function load() {
|
|||
teamsStore.refresh();
|
||||
my.refresh((my) => {
|
||||
if (my && my.team_id === 0) {
|
||||
stop_refresh = true;
|
||||
stop_refresh.state = true;
|
||||
}
|
||||
});
|
||||
issuesStore.refresh();
|
||||
|
|
|
|||
Reference in a new issue