From 0c57c722f369171a59cf7544cb36a891f57d624b Mon Sep 17 00:00:00 2001 From: Alireza Heidari Date: Sat, 25 Dec 2021 19:02:30 +0330 Subject: [PATCH 01/10] Add Back button in for Chose Remote Data when there is an error navigation file source --- .../components/FilesDialog/FilesDialog.vue | 9 +++++-- .../SelectionDialog/SelectionDialog.vue | 27 ++++++++++++++++--- 2 files changed, 30 insertions(+), 6 deletions(-) diff --git a/client/src/components/FilesDialog/FilesDialog.vue b/client/src/components/FilesDialog/FilesDialog.vue index f55a3cf275a..bd0503dd4b6 100644 --- a/client/src/components/FilesDialog/FilesDialog.vue +++ b/client/src/components/FilesDialog/FilesDialog.vue @@ -3,7 +3,9 @@ :error-message="errorMessage" :options-show="optionsShow" :modal-show="modalShow" - :hide-modal="() => (modalShow = false)"> + :hide-modal="() => (modalShow = false)" + :back-func="() => load()" + :undo-show="undoShow"> @@ -261,7 +263,10 @@ export default { this.filter = null; this.optionsShow = false; this.undoShow = !this.urlTracker.atRoot(); - if (this.urlTracker.atRoot()) { + if (this.urlTracker.atRoot() || this.errorMessage) { + if (this.errorMessage) { + this.errorMessage = null + } this.services .getFileSources() .then((items) => { diff --git a/client/src/components/SelectionDialog/SelectionDialog.vue b/client/src/components/SelectionDialog/SelectionDialog.vue index 5227e1d4ad4..76579e9595d 100644 --- a/client/src/components/SelectionDialog/SelectionDialog.vue +++ b/client/src/components/SelectionDialog/SelectionDialog.vue @@ -3,8 +3,6 @@ modal-class="selection-dialog-modal" v-if="modalShow" visible - ok-only - ok-title="Close" :static="modalStatic" @hide="hideModal">