UX: Improve disable back button in full-screen dialogs

Signed-off-by: Michael Mayer <michael@liquidbytes.net>
This commit is contained in:
Michael Mayer 2020-12-27 16:15:27 +01:00
parent 9be5f332d2
commit 42f674401e
2 changed files with 2 additions and 2 deletions

View file

@ -109,7 +109,7 @@ const router = new Router({
});
router.beforeEach((to, from, next) => {
if (document.documentElement.className) {
if (document.querySelector(".v-dialog--active.v-dialog--fullscreen")) {
// Disable back button in full-screen viewers and editors.
next(false);
} else if (to.matched.some((record) => record.meta.settings) && config.values.disable.settings) {

View file

@ -109,7 +109,7 @@ const router = new Router({
});
router.beforeEach((to, from, next) => {
if (document.documentElement.className) {
if (document.querySelector(".v-dialog--active.v-dialog--fullscreen")) {
// Disable back button in full-screen viewers and editors.
next(false);
} else if (to.matched.some((record) => record.meta.settings) && config.values.disable.settings) {