Fix: Settings lädt frischen /me-State beim Init — Badges immer aktuell ohne Re-Login, SW by-v556
This commit is contained in:
parent
125fb3c7e7
commit
f31f219ad6
3 changed files with 10 additions and 2 deletions
|
|
@ -54,6 +54,14 @@ window.Page_settings = (() => {
|
|||
_container = container;
|
||||
_appState = appState;
|
||||
_render();
|
||||
// Frischen User-State laden damit Badges (is_founder, is_partner) aktuell sind
|
||||
if (_appState.user) {
|
||||
try {
|
||||
const fresh = await API.auth.me();
|
||||
Object.assign(_appState.user, fresh);
|
||||
_render();
|
||||
} catch {}
|
||||
}
|
||||
}
|
||||
|
||||
function refresh() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue