mirror of
https://github.com/YunoHost/yunohost-admin.git
synced 2024-09-03 20:06:15 +02:00
fixed error modal not closing on browser's back button
This commit is contained in:
parent
bdde8b39c0
commit
9a795b4df8
1 changed files with 3 additions and 0 deletions
|
@ -28,6 +28,9 @@ const router = new VueRouter({
|
|||
})
|
||||
|
||||
router.beforeEach((to, from, next) => {
|
||||
if (store.getters.error) {
|
||||
store.dispatch('DELETE_ERROR')
|
||||
}
|
||||
// Allow if connected or route is not protected
|
||||
if (store.getters.connected || to.meta.noAuth) {
|
||||
next()
|
||||
|
|
Loading…
Reference in a new issue