mirror of
https://github.com/harvester/harvester-ui-extension.git
synced 2026-10-04 05:06:05 +08:00
add lock icon in VM list page
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user