From f8d5aa1a21cdc5153b26f5d7a9c08ee01778e409 Mon Sep 17 00:00:00 2001 From: Andy Lee Date: Fri, 28 Mar 2025 12:37:54 +0800 Subject: [PATCH] update to take VM snapshot logic (#222) --- pkg/harvester/models/kubevirt.io.virtualmachine.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/harvester/models/kubevirt.io.virtualmachine.js b/pkg/harvester/models/kubevirt.io.virtualmachine.js index 875a37d6..441eccbb 100644 --- a/pkg/harvester/models/kubevirt.io.virtualmachine.js +++ b/pkg/harvester/models/kubevirt.io.virtualmachine.js @@ -158,7 +158,7 @@ export default class VirtVm extends HarvesterResource { }, { action: 'takeVMSnapshot', - enabled: !!this.actions?.backup && !this.longhornV2Volumes.length, + enabled: (!!this.actions?.snapshot || !!this.action?.backup) && !this.longhornV2Volumes.length, icon: 'icon icon-snapshot', label: this.t('harvester.action.vmSnapshot') },