diff --git a/pkg/harvester/detail/harvesterhci.io.virtualmachineimage/index.vue b/pkg/harvester/detail/harvesterhci.io.virtualmachineimage/index.vue index 3c09ca7d..1fda3f7d 100644 --- a/pkg/harvester/detail/harvesterhci.io.virtualmachineimage/index.vue +++ b/pkg/harvester/detail/harvesterhci.io.virtualmachineimage/index.vue @@ -118,6 +118,10 @@ export default { imageName() { return this.value?.metadata?.annotations?.[HCI_ANNOTATIONS.IMAGE_NAME] || '-'; }, + + sourceType() { + return this.value?.spec?.sourceType; + }, } }; @@ -252,6 +256,16 @@ export default { +
+
+ +
+
+
!toFilter.includes(A.action)); + // show `Clone` only when imageSource is `download` + if (this.imageSource !== 'download') { + out = out.filter(({ action }) => action !== 'goToClone'); + } + const schema = this.$getters['schemaFor'](HCI.VM); let canCreateVM = true;