From 95de9ad5666b63b64290285f6a9e6221a82d7c08 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20Mart=C3=ADn?= Date: Thu, 6 Aug 2015 17:17:20 +0200 Subject: [PATCH] Feature #3782: Remove disk-snapshot action for volatile disks --- src/sunstone/public/app/tabs/vms-tab/panels/storage.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sunstone/public/app/tabs/vms-tab/panels/storage.js b/src/sunstone/public/app/tabs/vms-tab/panels/storage.js index 2cf51a308e..b2893fb319 100644 --- a/src/sunstone/public/app/tabs/vms-tab/panels/storage.js +++ b/src/sunstone/public/app/tabs/vms-tab/panels/storage.js @@ -179,7 +179,7 @@ define(function(require) { } if (Config.isTabActionEnabled("vms-tab", "VM.disk_snapshot_create")) { - if (StateActions.enabledStateAction("VM.disk_snapshot_create", that.element.STATE, that.element.LCM_STATE) && !disk.CONTEXT) { + if (StateActions.enabledStateAction("VM.disk_snapshot_create", that.element.STATE, that.element.LCM_STATE) && disk.IMAGE_ID) { actions += ('\ ' + Locale.tr("Snapshot") + '');