refactor: enable edit as yaml in VM image page (#843)

Signed-off-by: Andy Lee <andy.lee@suse.com>
This commit is contained in:
Andy Lee 2026-05-03 23:05:36 +08:00 committed by GitHub
parent 67bb6dfbd5
commit 8f65915bad
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -39,9 +39,6 @@ function isReady() {
export default class HciVmImage extends HarvesterResource { export default class HciVmImage extends HarvesterResource {
get availableActions() { get availableActions() {
let out = super._availableActions; let out = super._availableActions;
const toFilter = ['goToEditYaml'];
out = out.filter( (A) => !toFilter.includes(A.action));
// show `Clone` only when imageSource is `download` // show `Clone` only when imageSource is `download`
if (this.imageSource !== 'download') { if (this.imageSource !== 'download') {