diff options
Diffstat (limited to 'viewer/src/store')
-rw-r--r-- | viewer/src/store/uiStore.ts | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/viewer/src/store/uiStore.ts b/viewer/src/store/uiStore.ts index 2c45136..520fcf4 100644 --- a/viewer/src/store/uiStore.ts +++ b/viewer/src/store/uiStore.ts | |||
@@ -27,7 +27,7 @@ const VuexModule = createModule({ | |||
27 | strict: true, | 27 | strict: true, |
28 | }); | 28 | }); |
29 | 29 | ||
30 | const STORAGE_SPLASHSCREEN_VALIDATION = "splashScreenValidation"; | 30 | const STORAGE_SPLASHSCREEN_ACKNOWLEDGMENT = "splashScreenAcknowledgment"; |
31 | 31 | ||
32 | export default class UIStore extends VuexModule { | 32 | export default class UIStore extends VuexModule { |
33 | fullscreen: boolean = false; | 33 | fullscreen: boolean = false; |
@@ -74,8 +74,8 @@ export default class UIStore extends VuexModule { | |||
74 | } | 74 | } |
75 | if (config.splashScreen) { | 75 | if (config.splashScreen) { |
76 | this.setSplashScreenConfig(config.splashScreen); | 76 | this.setSplashScreenConfig(config.splashScreen); |
77 | const uid = config.splashScreen.dontshowagainUID; | 77 | const uid = config.splashScreen.acknowledgmentKey; |
78 | this.setSplashScreenEnabled(!uid || localStorage.getItem(STORAGE_SPLASHSCREEN_VALIDATION) !== uid); | 78 | this.setSplashScreenEnabled(!uid || localStorage.getItem(STORAGE_SPLASHSCREEN_ACKNOWLEDGMENT) !== uid); |
79 | } | 79 | } |
80 | } | 80 | } |
81 | 81 | ||
@@ -83,7 +83,7 @@ export default class UIStore extends VuexModule { | |||
83 | 83 | ||
84 | @action async validateSpashScreen() { | 84 | @action async validateSpashScreen() { |
85 | this.setSplashScreenEnabled(false); | 85 | this.setSplashScreenEnabled(false); |
86 | const uid = this.splashScreenConfig?.dontshowagainUID; | 86 | const uid = this.splashScreenConfig?.acknowledgmentKey; |
87 | if (uid) localStorage.setItem(STORAGE_SPLASHSCREEN_VALIDATION, String(uid)); | 87 | if (uid) localStorage.setItem(STORAGE_SPLASHSCREEN_ACKNOWLEDGMENT, String(uid)); |
88 | } | 88 | } |
89 | } | 89 | } |