mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2025-12-20 01:11:25 +00:00
Added session based view updation for gallery notebooks (#120)
This commit is contained in:
committed by
GitHub
parent
dab6e43d0d
commit
14ef40029d
@@ -44,7 +44,11 @@ export class SessionStorageUtility {
|
||||
}
|
||||
|
||||
public static getEntryNumber(key: StorageKey): number {
|
||||
return StringUtility.toNumber(localStorage.getItem(StorageKey[key]));
|
||||
return StringUtility.toNumber(sessionStorage.getItem(StorageKey[key]));
|
||||
}
|
||||
|
||||
public static getEntry(key: string): string | null {
|
||||
return sessionStorage.getItem(key);
|
||||
}
|
||||
|
||||
public static removeEntry(key: StorageKey): void {
|
||||
@@ -55,6 +59,10 @@ export class SessionStorageUtility {
|
||||
sessionStorage.setItem(StorageKey[key], value);
|
||||
}
|
||||
|
||||
public static setEntry(key: string, value: string): void {
|
||||
sessionStorage.setItem(key, value);
|
||||
}
|
||||
|
||||
public static setEntryNumber(key: StorageKey, value: number): void {
|
||||
sessionStorage.setItem(StorageKey[key], value.toString());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user