feat: display message from MIG status and change the state to match the case (#879)

Signed-off-by: Jack Yu <jack.yu@suse.com>
This commit is contained in:
Jack Yu
2026-05-26 13:44:27 +08:00
committed by GitHub
parent 89e1484884
commit a27e38fc81
2 changed files with 19 additions and 3 deletions
@@ -63,13 +63,27 @@ export default class MIGCONFIGURATION extends HarvesterResource {
}
get stateDisplay() {
if (this.configStatus === 'out-of-sync') {
return this.t('harvester.migconfiguration.status.outOfSync');
}
return this.actualState;
}
get stateColor() {
const state = this.actualState;
get stateDescription() {
if (this.status?.message) {
return this.status.message;
}
return colorForState(state);
return super.stateDescription;
}
get stateColor() {
if (this.configStatus === 'out-of-sync') {
return 'text-warning';
}
return colorForState(this.actualState);
}
get isEnabled() {