Add notifications badge and page (#240)

* WIP on server notifications

* WIP: Add server notifications page and removal of notifications

* improve design

* fix missing notifications case; add tooltop

* Fix api response

* fix tests

* add docs; update readme
This commit is contained in:
Borislav Pantaleev
2024-12-19 11:24:42 +02:00
committed by GitHub
parent c643bdcfce
commit c596d38d7a
12 changed files with 333 additions and 11 deletions

View File

@@ -80,11 +80,7 @@ const authProvider: AuthProvider = {
localStorage.setItem("access_token", accessToken ? accessToken : json.access_token);
localStorage.setItem("device_id", json.device_id);
localStorage.setItem("login_type", accessToken ? "accessToken" : "credentials");
// when doing access token auth, config is not fetched, so we need to do it here
if (accessToken) {
await FetchConfig();
}
await FetchConfig();
return Promise.resolve({redirectTo: "/"});
} catch(err) {