Skip to content

Commit d4d310c

Browse files
GutoVeroneziGutoVeronezi
andauthored
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>
1 parent f9347ec commit d4d310c

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

ui/src/views/storage/RestoreAttachBackupVolume.vue

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -162,12 +162,10 @@ export default {
162162
jobId,
163163
title,
164164
description: values.volumeid,
165-
successMethod: result => {
166-
this.closeAction()
167-
},
168165
loadingMessage: `${title} ${this.$t('label.in.progress.for')} ${this.resource.id}`,
169166
catchMessage: this.$t('error.fetching.async.job.result')
170167
})
168+
this.closeAction()
171169
}
172170
}).catch(error => {
173171
this.$notifyError(error)

0 commit comments

Comments
 (0)