catch localforage error and let the application work, add an alert for user to dismiss

This commit is contained in:
Shpuld Shpuldson 2020-07-01 19:15:28 +03:00
parent beb160bd53
commit d30b0b28c9
7 changed files with 47 additions and 3 deletions

View file

@ -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')
}
}
}