diff --git a/komga-webui/src/components/FileBrowserDialog.vue b/komga-webui/src/components/FileBrowserDialog.vue index cce942a23..44ca2ec66 100644 --- a/komga-webui/src/components/FileBrowserDialog.vue +++ b/komga-webui/src/components/FileBrowserDialog.vue @@ -79,6 +79,7 @@ export default Vue.extend({ }, watch: { value (val) { + if (val) this.dialogInit() this.modalFileBrowser = val }, modalFileBrowser (val) { @@ -100,10 +101,15 @@ export default Vue.extend({ default: 'Choose', }, }, - async mounted () { - this.getDirs() - }, methods: { + dialogInit () { + try { + this.getDirs(this.path) + this.selectedPath = this.path + } catch (e) { + this.getDirs() + } + }, dialogCancel () { this.$emit('input', false) }, diff --git a/komga-webui/src/components/LibraryAddDialog.vue b/komga-webui/src/components/LibraryAddDialog.vue index 0952e1b13..2faac1cdc 100644 --- a/komga-webui/src/components/LibraryAddDialog.vue +++ b/komga-webui/src/components/LibraryAddDialog.vue @@ -45,7 +45,6 @@