Requires login to see themes (when using fic-nginx container)
This commit is contained in:
parent
51e3bfde90
commit
cb2cd7f4c0
5 changed files with 53 additions and 8 deletions
|
|
@ -12,6 +12,7 @@
|
|||
import { goto } from '$app/navigation';
|
||||
|
||||
import { my } from '$lib/stores/my.js';
|
||||
import { themesStore } from '$lib/stores/themes.js';
|
||||
import { settings } from '$lib/stores/settings.js';
|
||||
|
||||
import RegistrationFormCreateTeam from '$lib/components/RegistrationFormCreateTeam.svelte';
|
||||
|
|
@ -26,7 +27,9 @@
|
|||
function gotoHomeOnDiff(i) {
|
||||
my.refresh((my) => {
|
||||
if (my && my.team_id) {
|
||||
goto('.');
|
||||
themesStore.refresh(() => {
|
||||
goto('.');
|
||||
});
|
||||
} else if (i > 0) {
|
||||
setTimeout(gotoHomeOnDiff, 650, i-1);
|
||||
}
|
||||
|
|
|
|||
Reference in a new issue