mirror of https://github.com/apache/cloudstack.git
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:
parent
f9347ecf2c
commit
d4d310c790
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue