|
@@ -1,5 +1,5 @@
|
|
export class Session {
|
|
export class Session {
|
|
- static reset(): void {
|
|
|
|
|
|
+ static resetBearerToken(): void {
|
|
localStorage.removeItem('token');
|
|
localStorage.removeItem('token');
|
|
}
|
|
}
|
|
|
|
|
|
@@ -18,4 +18,16 @@ export class Session {
|
|
static theme(): string | null {
|
|
static theme(): string | null {
|
|
return localStorage.getItem('theme');
|
|
return localStorage.getItem('theme');
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ static resetLastShownComponent(): void {
|
|
|
|
+ localStorage.removeItem('path');
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ static setLastShownComponent(path: string): void {
|
|
|
|
+ localStorage.setItem('path', path);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ static lastShownComponent(): string | null {
|
|
|
|
+ return localStorage.getItem('path');
|
|
|
|
+ }
|
|
}
|
|
}
|