mirror of
https://github.com/harvester/harvester-ui-extension.git
synced 2026-11-25 18:10:48 +08:00
add lock icon in VM list page
This commit is contained in:
1 parent
d06f0ec989
commit
6ce99fad1f
5 files changed
+54
-15
No files matched your search
@@ -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