[menu] show hamburger when logged out, fix menu scrolling on small screen
This commit is contained in:
@@ -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 }
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user