[menu] show hamburger when logged out, fix menu scrolling on small screen

This commit is contained in:
nymkappa
2023-08-18 17:56:07 +02:00
parent 1bdbb1b908
commit 5aff2c74e6
8 changed files with 98 additions and 36 deletions

View File

@@ -353,4 +353,16 @@ export class ApiService {
headers: { 'Authorization': auth.token }
});
}
logout$() {
const auth = JSON.parse(localStorage.getItem('auth') || '');
if (!auth) {
return;
}
localStorage.setItem('auth', null);
return this.httpClient.post(`${SERVICES_API_PREFIX}/auth/logout`, {
headers: { 'Authorization': auth.token }
});
}
}