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 <daniel@scclouds.com.br>
This commit is contained in:
Daniel Augusto Veronezi Salvador 2022-08-03 07:50:23 -03:00 committed by GitHub
parent f9347ecf2c
commit d4d310c790
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 3 deletions

View File

@ -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)