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

Feature #3782: Allow to revert to active disk snapshot in sunstone

This commit is contained in:
Carlos Martín 2015-07-07 16:22:00 +02:00
parent 0e708328b3
commit da86175e43

View File

@ -423,11 +423,11 @@ define(function(require) {
<i class="fa fa-save"></i>' + Locale.tr("Save as") + '</a> &emsp;';
}
if(!active){
if (Config.isTabActionEnabled("vms-tab", "VM.disk_snapshot_revert")) {
html += '<a href="VM.disk_snapshot_revert" class="disk_snapshot_revert" ><i class="fa fa-reply"/>' + Locale.tr("Revert") + '</a> &emsp;';
}
if (Config.isTabActionEnabled("vms-tab", "VM.disk_snapshot_revert")) {
html += '<a href="VM.disk_snapshot_revert" class="disk_snapshot_revert" ><i class="fa fa-reply"/>' + Locale.tr("Revert") + '</a> &emsp;';
}
if(!active){
if (Config.isTabActionEnabled("vms-tab", "VM.disk_snapshot_delete")) {
html += '<a href="VM.disk_snapshot_delete" class="disk_snapshot_delete" ><i class="fa fa-times"/>' + Locale.tr("Delete") + '</a>';
}