mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
ui: fix error jobid not found & console error when using filter (#5323)
Fixes #5322
This commit is contained in:
parent
873dc5492b
commit
72182b6bd9
@ -46,7 +46,7 @@
|
|||||||
v-else />
|
v-else />
|
||||||
</div>
|
</div>
|
||||||
<div slot="memused" slot-scope="record">
|
<div slot="memused" slot-scope="record">
|
||||||
<span v-if="record.memoryused | byteToGigabyte">
|
<span v-if="record.memoryused">
|
||||||
{{ record.memoryused | byteToGigabyte }} GB
|
{{ record.memoryused | byteToGigabyte }} GB
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
@ -197,7 +197,9 @@ export default {
|
|||||||
var migrateParams = this.selectedHost.id === -1 ? { autoselect: true, virtualmachineid: this.resource.id }
|
var migrateParams = this.selectedHost.id === -1 ? { autoselect: true, virtualmachineid: this.resource.id }
|
||||||
: { hostid: this.selectedHost.id, virtualmachineid: this.resource.id }
|
: { hostid: this.selectedHost.id, virtualmachineid: this.resource.id }
|
||||||
api(migrateApi, migrateParams).then(response => {
|
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({
|
this.$pollJob({
|
||||||
jobId: jobid,
|
jobId: jobid,
|
||||||
title: `${this.$t('label.migrating')} ${this.resource.name}`,
|
title: `${this.$t('label.migrating')} ${this.resource.name}`,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user