mirror of
https://github.com/harvester/harvester-ui-extension.git
synced 2025-12-13 05:01:43 +00:00
feat: show configured profile in table
Signed-off-by: Andy Lee <andy.lee@suse.com>
This commit is contained in:
parent
d5ac6d9617
commit
375140b1b1
@ -272,7 +272,7 @@ harvester:
|
||||
cronExpression: Cron Expression
|
||||
retain: Retain
|
||||
scheduleType: Type
|
||||
profileCount: Profile Count
|
||||
configuredProfile: Configured Count
|
||||
maxFailure: Max Failure
|
||||
sourceVm: Source Virtual Machine
|
||||
vmSchedule: Virtual Machine Schedule
|
||||
|
||||
@ -94,11 +94,11 @@ export default {
|
||||
sort: ['spec.gpuAddress']
|
||||
},
|
||||
{
|
||||
name: 'Profile Count',
|
||||
label: 'Profile Count',
|
||||
labelKey: 'harvester.tableHeaders.profileCount',
|
||||
value: 'spec.profileSpec.length',
|
||||
sort: ['spec.profileSpec.length'],
|
||||
name: 'Configured Profile',
|
||||
label: 'Configured Count',
|
||||
labelKey: 'harvester.tableHeaders.configuredProfile',
|
||||
value: 'configuredProfile',
|
||||
sort: ['configuredProfile'],
|
||||
align: 'center'
|
||||
},
|
||||
{
|
||||
|
||||
@ -75,6 +75,10 @@ export default class MIGCONFIGURATION extends SteveModel {
|
||||
return this.spec.enabled;
|
||||
}
|
||||
|
||||
get configuredProfile() {
|
||||
return this.spec?.profileSpec?.filter((p) => p.requested > 0).map((p) => p.name).join(', ') || '-';
|
||||
}
|
||||
|
||||
async enableConfig() {
|
||||
try {
|
||||
this.spec.enabled = true;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user