UX: Improve disable back button in full-screen dialogs
Signed-off-by: Michael Mayer <michael@liquidbytes.net>
This commit is contained in:
parent
9be5f332d2
commit
42f674401e
2 changed files with 2 additions and 2 deletions
|
@ -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) {
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue