Merge pull request #88 from harvester/mergify/bp/release-harvester-v1.5/pr-84

fix: resume schedule job error (backport #84)
This commit is contained in:
Andy Lee 2025-01-14 13:12:17 +08:00 committed by GitHub
commit 9af5ff7b12
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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;
}