aboutsummaryrefslogtreecommitdiff
path: root/src/components
diff options
context:
space:
mode:
authorHenry Jameson <me@hjkos.com>2020-01-22 01:28:05 +0200
committerHenry Jameson <me@hjkos.com>2020-01-22 01:28:17 +0200
commit803edcb53a664382f9db9a00ccebe8efee1873ef (patch)
tree11ded0aab105c0b321f227acf41745109ab3ae29 /src/components
parent1191207aa5a32627e54f7febcd279d50d03c66b3 (diff)
dismiss warning when loading theme
Diffstat (limited to 'src/components')
-rw-r--r--src/components/style_switcher/style_switcher.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/components/style_switcher/style_switcher.js b/src/components/style_switcher/style_switcher.js
index 8f0de067..44e7595d 100644
--- a/src/components/style_switcher/style_switcher.js
+++ b/src/components/style_switcher/style_switcher.js
@@ -162,7 +162,7 @@ export default {
} else if (origin === 'localStorage') {
// FE upgraded from v2
if (themeEngineVersion === 2) {
- return 'upgraded_from_v2'
+ return t(pre + 'upgraded_from_v2')
}
// Admin downgraded FE
if (themeEngineVersion > CURRENT_VERSION) {
@@ -426,6 +426,7 @@ export default {
this.onImport(this.tempImportFile, true)
break
}
+ this.dismissWarning()
},
loadThemeFromLocalStorage (confirmLoadSource = false) {
const {