aboutsummaryrefslogtreecommitdiff
path: root/src/App.js
diff options
context:
space:
mode:
authorShpuld Shpuldson <shp@cock.li>2020-07-01 19:15:28 +0300
committerShpuld Shpuldson <shp@cock.li>2020-07-01 19:15:28 +0300
commitd30b0b28c9371e56ffe54b5a8b56087718221c1d (patch)
tree2ef028c630edb52a2377e8a5ab6ee6492543afec /src/App.js
parentbeb160bd537abcb7f2e147c7954886d2f51d385f (diff)
catch localforage error and let the application work, add an alert for user to dismiss
Diffstat (limited to 'src/App.js')
-rw-r--r--src/App.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/App.js b/src/App.js
index 040138c9..da66fe21 100644
--- a/src/App.js
+++ b/src/App.js
@@ -107,6 +107,9 @@ export default {
return {
'order': this.$store.state.instance.sidebarRight ? 99 : 0
}
+ },
+ showStorageError () {
+ return this.$store.state.interface.storageError === 'show'
}
},
methods: {
@@ -129,6 +132,9 @@ export default {
if (changed) {
this.$store.dispatch('setMobileLayout', mobileLayout)
}
+ },
+ hideStorageError () {
+ this.$store.dispatch('setStorageError', 'hide')
}
}
}