From 72dedd46d1d7608660608a2d62fcc0faed5c6d97 Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Fri, 28 Mar 2025 15:13:46 +0800 Subject: [PATCH] update to take VM snapshot logic (#222) (#224) (cherry picked from commit f8d5aa1a21cdc5153b26f5d7a9c08ee01778e409) Co-authored-by: Andy Lee --- 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') },