Added run state front end support
Updated scholars layout to match dashboard
This commit is contained in:
parent
e49e753023
commit
110e246a1c
10 changed files with 1095 additions and 284 deletions
|
|
@ -1,5 +1,6 @@
|
|||
import { setCsrfTokenProvider } from "@/lib/api/client";
|
||||
import { useAuthStore } from "@/stores/auth";
|
||||
import { useRunStatusStore } from "@/stores/run_status";
|
||||
import { useThemeStore } from "@/stores/theme";
|
||||
import { useUserSettingsStore } from "@/stores/user_settings";
|
||||
|
||||
|
|
@ -12,9 +13,12 @@ export async function bootstrapAppProviders(): Promise<void> {
|
|||
await auth.bootstrapSession();
|
||||
|
||||
const userSettings = useUserSettingsStore();
|
||||
const runStatus = useRunStatusStore();
|
||||
if (auth.isAuthenticated) {
|
||||
await userSettings.bootstrap();
|
||||
await runStatus.bootstrap();
|
||||
} else {
|
||||
userSettings.reset();
|
||||
runStatus.reset();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue