frontend: Workload pages
This commit is contained in:
parent
c24a5ce480
commit
9eb9be7318
8 changed files with 372 additions and 21 deletions
|
|
@ -26,7 +26,7 @@ export function useApi() {
|
|||
if (status === 401) {
|
||||
console.warn("API returned 401 — logging out")
|
||||
logout()
|
||||
throw new Error("Deine Sitzung ist abgelaufen. Bitte erneut einloggen.")
|
||||
return { unauthorized: true }
|
||||
}
|
||||
|
||||
// 403 → keine Berechtigung
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue