Removed confirm dialog when user go back after login in

This commit is contained in:
Peter Papp
2021-02-01 16:51:44 +01:00
parent 6e3adcd459
commit 0e1ebdd809
4 changed files with 63 additions and 75 deletions

View File

@@ -189,18 +189,6 @@ export default {
this.dragInProgress = false
})
},
beforeRouteLeave(to, from, next) {
// Inquire user about his willing to step back to sign in page
if (to.name === 'SignIn') {
if (window.confirm(this.$t('alerts.leave_to_sign_in'))) {
next()
} else {
next(false)
}
} else {
next()
}
}
}
</script>