admin-ui: align with API, add auth, fix integrations
Some checks failed
DSS Project Analysis / dss-context-update (push) Has been cancelled
Some checks failed
DSS Project Analysis / dss-context-update (push) Has been cancelled
This commit is contained in:
@@ -7,7 +7,7 @@ export * from './team';
|
||||
export * from './user';
|
||||
|
||||
import { loadProjects } from './project';
|
||||
import { loadUserPreferences } from './user';
|
||||
import { loadUserPreferences, refreshUser } from './user';
|
||||
|
||||
/**
|
||||
* Initialize the application state
|
||||
@@ -17,6 +17,9 @@ export async function initializeApp(): Promise<void> {
|
||||
// Load user preferences from localStorage
|
||||
loadUserPreferences();
|
||||
|
||||
// Restore session if token exists
|
||||
await refreshUser();
|
||||
|
||||
// Load projects from API
|
||||
await loadProjects();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user