From d4d310c790e32484389b05e88e2960f71fbde3f3 Mon Sep 17 00:00:00 2001 From: Daniel Augusto Veronezi Salvador <38945620+GutoVeronezi@users.noreply.github.com> Date: Wed, 3 Aug 2022 07:50:23 -0300 Subject: [PATCH] ui: Close form right after receiving the job id (#6603) When restoring and attaching a backup volume, the UI waits for the successfful response of the API to close the formulary. However, letting the form open after sending the command can confuse users, that might try to send the command again. Note: other formularies (like volume or snapshot creation) always are closed after sending the command to the backend. With this PR, we intend to close the formulary right after sending the command, as done with others. Co-authored-by: GutoVeronezi --- ui/src/views/storage/RestoreAttachBackupVolume.vue | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/ui/src/views/storage/RestoreAttachBackupVolume.vue b/ui/src/views/storage/RestoreAttachBackupVolume.vue index 31f6b1c817a..41a8f76298f 100644 --- a/ui/src/views/storage/RestoreAttachBackupVolume.vue +++ b/ui/src/views/storage/RestoreAttachBackupVolume.vue @@ -162,12 +162,10 @@ export default { jobId, title, description: values.volumeid, - successMethod: result => { - this.closeAction() - }, loadingMessage: `${title} ${this.$t('label.in.progress.for')} ${this.resource.id}`, catchMessage: this.$t('error.fetching.async.job.result') }) + this.closeAction() } }).catch(error => { this.$notifyError(error)