ui: Show memory allocated percentage when migrating vm (#4784)

This commit is contained in:
davidjumani 2021-03-11 13:06:11 +05:30 committed by GitHub
parent 8510344129
commit 9454edd0f3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -47,6 +47,9 @@
<div slot="memused" slot-scope="record">
{{ record.memoryused | byteToGigabyte }} GB
</div>
<div slot="memoryallocatedpercentage" slot-scope="record">
{{ record.memoryallocatedpercentage }}
</div>
<template slot="select" slot-scope="record">
<a-radio
class="host-item__radio"
@ -113,6 +116,10 @@ export default {
title: this.$t('label.cpuused'),
dataIndex: 'cpuused'
},
{
title: this.$t('label.memoryallocated'),
scopedSlots: { customRender: 'memoryallocatedpercentage' }
},
{
title: this.$t('label.memused'),
scopedSlots: { customRender: 'memused' }