Requires login to see themes (when using fic-nginx container)

This commit is contained in:
nemunaire 2023-07-28 10:34:56 +02:00
commit cb2cd7f4c0
5 changed files with 53 additions and 8 deletions

View file

@ -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);
}