Skip to content

Commit 1c5e276

Browse files
committed
refactor: remove isReady getter to simplify readiness checks
Signed-off-by: Andy Lee <andy.lee@suse.com>
1 parent e4837f6 commit 1c5e276

1 file changed

Lines changed: 0 additions & 15 deletions

File tree

pkg/harvester-manager/models/harvesterhci.io.management.cluster.js

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -26,21 +26,6 @@ export default class HciCluster extends ProvCluster {
2626
}
2727
}
2828

29-
get isReady() {
30-
const conditions = this.mgmt?.status?.conditions || [];
31-
const connected = conditions.find((c) => c.type === 'Connected');
32-
33-
// If the Connected condition exists, use that (2.6+)
34-
if (connected) {
35-
return connected.status === 'True';
36-
}
37-
38-
// Otherwise use Ready (older)
39-
const ready = conditions.find((c) => c.type === 'Ready');
40-
41-
return ready?.status === 'True';
42-
}
43-
4429
get canEdit() {
4530
return this.canUpdate && this.canCustomEdit;
4631
}

0 commit comments

Comments
 (0)