diff --git a/pkg/harvester/models/harvesterhci.io.schedulevmbackup.js b/pkg/harvester/models/harvesterhci.io.schedulevmbackup.js index 758977b..7fedea7 100644 --- a/pkg/harvester/models/harvesterhci.io.schedulevmbackup.js +++ b/pkg/harvester/models/harvesterhci.io.schedulevmbackup.js @@ -64,6 +64,10 @@ export default class ScheduleVmBackup extends HarvesterResource { } } + get stateObj() { + return this?.metadata?.state || {}; + } + get state() { return this.status?.suspended === true ? STATES.suspended.label : STATES.active.label; }