mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
migratewizard: Display error and unfreeze form when api call fails (#912)
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This commit is contained in:
parent
ecf5e92af9
commit
f0d08c5978
@ -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) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user