add lock icon in VM list page

This commit is contained in:
andy.lee
2024-10-23 17:01:29 +02:00
committed by Francesco Torchia
parent d06f0ec989
commit 6ce99fad1f
5 changed files with 54 additions and 15 deletions
@@ -214,11 +214,7 @@ export default class HciPv extends HarvesterResource {
}
get isEncrypted() {
const inStore = this.$rootGetters['currentProduct'].inStore;
const longhornVolume = this.$rootGetters[`${ inStore }/all`](LONGHORN.VOLUMES).find(v => v.metadata?.name === this.spec?.volumeName);
return longhornVolume?.spec.encrypted || false;
return this.relatedPV?.spec.csi.volumeAttributes.encrypted || false;
}
get longhornVolume() {