This is an automated email from the ASF dual-hosted git repository.
rohit pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/cloudstack.git
The following commit(s) were added to refs/heads/main by this push:
new 72182b6 ui: fix error jobid not found & console error when using
filter (#5323)
72182b6 is described below
commit 72182b6bd9d045f3ce9fa327d329b6d423ef11e8
Author: Hoang Nguyen <[email protected]>
AuthorDate: Tue Aug 17 14:24:07 2021 +0700
ui: fix error jobid not found & console error when using filter (#5323)
Fixes #5322
---
ui/src/views/compute/MigrateWizard.vue | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/ui/src/views/compute/MigrateWizard.vue
b/ui/src/views/compute/MigrateWizard.vue
index e0f390b..3107998 100644
--- a/ui/src/views/compute/MigrateWizard.vue
+++ b/ui/src/views/compute/MigrateWizard.vue
@@ -46,7 +46,7 @@
v-else />
</div>
<div slot="memused" slot-scope="record">
- <span v-if="record.memoryused | byteToGigabyte">
+ <span v-if="record.memoryused">
{{ record.memoryused | byteToGigabyte }} GB
</span>
</div>
@@ -197,7 +197,9 @@ export default {
var migrateParams = this.selectedHost.id === -1 ? { autoselect: true,
virtualmachineid: this.resource.id }
: { hostid: this.selectedHost.id, virtualmachineid: this.resource.id }
api(migrateApi, migrateParams).then(response => {
- const jobid = this.selectedHost.requiresStorageMotion ?
response.migratevirtualmachinewithvolumeresponse.jobid :
response.migratevirtualmachineresponse.jobid
+ const jobid = isUserVm
+ ? this.selectedHost.requiresStorageMotion ?
response.migratevirtualmachinewithvolumeresponse.jobid :
response.migratevirtualmachineresponse.jobid
+ : response.migratesystemvmresponse.jobid
this.$pollJob({
jobId: jobid,
title: `${this.$t('label.migrating')} ${this.resource.name}`,