fix: failed to clone an image file created by file upload (#339)

* fix: filter clone action
* fix: hide clone action for other types
* feat: show source type in details
---------
Signed-off-by: Yi-Ya Chen <yiya.chen@suse.com>
This commit is contained in:
Yiya Chen authored and GitHub committed 2025-06-18 17:17:43 +08:00
1 parent 90cb147938
commit 52c4556e64
2 files changed
+19

No files matched your search

@@ -43,6 +43,11 @@ export default class HciVmImage extends HarvesterResource {
out = out.filter( (A) => !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;