You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by ro...@apache.org on 2021/01/05 09:04:14 UTC
[cloudstack-primate] branch master updated: migratewizard: Display
error and unfreeze form when api call fails (#912)
This is an automated email from the ASF dual-hosted git repository.
rohit pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/cloudstack-primate.git
The following commit(s) were added to refs/heads/master by this push:
new 0618418 migratewizard: Display error and unfreeze form when api call fails (#912)
0618418 is described below
commit 0618418f25d46e74c338f696fb29728ec104dd8f
Author: davidjumani <dj...@gmail.com>
AuthorDate: Tue Jan 5 14:34:08 2021 +0530
migratewizard: Display error and unfreeze form when api call fails (#912)
---
src/views/compute/MigrateWizard.vue | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/src/views/compute/MigrateWizard.vue b/src/views/compute/MigrateWizard.vue
index e706b08..4c558c1 100644
--- a/src/views/compute/MigrateWizard.vue
+++ b/src/views/compute/MigrateWizard.vue
@@ -177,8 +177,13 @@ export default {
})
this.$parent.$parent.close()
}).catch(error => {
- console.error(error)
- this.$message.error(`${this.$t('message.migrating.vm.to.host.failed')} ${this.selectedHost.name}`)
+ this.$notification.error({
+ message: this.$t('message.request.failed'),
+ description: (error.response && error.response.headers && error.response.headers['x-description']) || error.message,
+ duration: 0
+ })
+ }).finally(() => {
+ this.loading = false
})
},
handleChangePage (page, pageSize) {