diff --git a/pkg/harvester/detail/harvesterhci.io.virtualmachineimage/index.vue b/pkg/harvester/detail/harvesterhci.io.virtualmachineimage/index.vue index ec8de0e8..3c09ca7d 100644 --- a/pkg/harvester/detail/harvesterhci.io.virtualmachineimage/index.vue +++ b/pkg/harvester/detail/harvesterhci.io.virtualmachineimage/index.vue @@ -29,10 +29,12 @@ export default { }, async fetch() { - const inStore = this.$store.getters['currentProduct'].inStore; + if (this.value.volumeEncryptionFeatureEnabled) { + const inStore = this.$store.getters['currentProduct'].inStore; - this.secrets = await this.$store.dispatch(`${ inStore }/findAll`, { type: SECRET }); - this.images = await this.$store.dispatch(`${ inStore }/findAll`, { type: HCI.IMAGE }); + this.secrets = await this.$store.dispatch(`${ inStore }/findAll`, { type: SECRET }); + this.images = await this.$store.dispatch(`${ inStore }/findAll`, { type: HCI.IMAGE }); + } }, data() { @@ -104,6 +106,7 @@ export default { return this.value.encryptionSecret; }, + secretLink() { return this.secrets.find((sc) => sc.id === this.value.encryptionSecret)?.detailLocation; }, @@ -198,7 +201,7 @@ export default {