From 36890a390d19e487431a9068d6587d92df06c22b Mon Sep 17 00:00:00 2001 From: Gauthier Roebroeck Date: Tue, 10 Dec 2019 11:43:39 +0800 Subject: [PATCH] navigate back instead of home when cancelling the add library dialog --- komga-webui/src/components/LibraryAddDialog.vue | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/komga-webui/src/components/LibraryAddDialog.vue b/komga-webui/src/components/LibraryAddDialog.vue index 1a514e2c1..51afaaa92 100644 --- a/komga-webui/src/components/LibraryAddDialog.vue +++ b/komga-webui/src/components/LibraryAddDialog.vue @@ -11,7 +11,7 @@ mdi-close {{ dialogTitle }} - + {{ confirmText }} @@ -30,7 +30,7 @@ :error-messages="getErrors('name')" @input="$v.form.name.$touch()" @blur="$v.form.name.$touch()" - > + /> @@ -41,7 +41,7 @@ :path.sync="form.path" confirm-text="Choose" dialog-title="Library's root folder" - > + /> + /> Browse @@ -61,7 +61,7 @@ - + Cancel {{ confirmText }} @@ -135,10 +135,9 @@ export default Vue.extend({ this.snackbar = true }, dialogCancel () { - this.$router.push({ name: 'home' }) + this.$router.back() }, dialogConfirm () { - // this.$router.push({ name: 'home' }) this.addLibrary() }, validateLibrary () {