fix: when choose encrypt can only choose encrypted storage class when creating image

Signed-off-by: andy.lee <andy.lee@suse.com>
(cherry picked from commit b0c7b1fefe)
This commit is contained in:
andy.lee
2025-01-20 03:39:28 +00:00
committed by Mergify
parent def4b64cd3
commit 3a5ead3c2c
2 changed files with 35 additions and 4 deletions
@@ -58,6 +58,10 @@ export default class HciStorageClass extends StorageClass {
return key ? this.$rootGetters['i18n/t'](key) : this.provisioner;
}
get isEncrypted() {
return this.parameters?.encrypted === 'true';
}
get isLonghornV2() {
return this.provisioner === LONGHORN_DRIVER && this.longhornVersion === DATA_ENGINE_V2;
}