mirror of
https://github.com/harvester/harvester-ui-extension.git
synced 2026-10-03 20:56:06 +08:00
Latest changes from Harvester master - d7d9d4af8a88d677695d7aff47a81d52041dfcca
Signed-off-by: Francesco Torchia <francesco.torchia@suse.com>
This commit is contained in:
@@ -15,7 +15,7 @@ export default class HciBlockDevice extends HarvesterResource {
|
||||
}
|
||||
|
||||
get isChildPartProvisioned() {
|
||||
const parts = this.childParts.filter(p => p.spec?.fileSystem?.provisioned) || [];
|
||||
const parts = this.childParts.filter(p => p.isProvisioned) || [];
|
||||
|
||||
return parts.length > 0;
|
||||
}
|
||||
@@ -59,4 +59,9 @@ export default class HciBlockDevice extends HarvesterResource {
|
||||
|
||||
return formatting.status === 'True';
|
||||
}
|
||||
|
||||
get isProvisioned() {
|
||||
// spec.fileSystem.provisioned is deprecated
|
||||
return this.spec?.fileSystem?.provisioned || this.spec?.provision;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user