1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-22 18:50:08 +03:00

Feature #3782: Remove disk-snapshot action for volatile disks

This commit is contained in:
Carlos Martín 2015-08-06 17:17:20 +02:00
parent 23f84d749f
commit 95de9ad566

View File

@ -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 += ('<a href="VM.disk_snapshot_create" class="disk_snapshot_create nowrap" >\
<i class="fa fa-camera fa-fw"></i>' + Locale.tr("Snapshot") +
'</a>');