1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-13 12:58:17 +03:00

Deleted saveas icon in cloud view for vCenter VMs (#339)

This commit is contained in:
Abel Coronado 2017-06-13 13:29:24 +02:00 committed by Tino Vázquez
parent 174dc9cbf3
commit 632cff4fb9

View File

@ -312,7 +312,7 @@ define(function(require) {
$(".provision_terminate_confirm_button", context).hide();
}
if(Config.isTabActionEnabled("provision-tab", "VM.save_as_template")){
if(Config.isTabActionEnabled("provision-tab", "VM.save_as_template") && (data.USER_TEMPLATE.HYPERVISOR != "vcenter")){
if (enabled("VM.save_as_template")){
$(".provision_save_as_template_confirm_button", context).show();
$(".provision_save_as_template_confirm_button_disabled", context).hide();
@ -320,7 +320,7 @@ define(function(require) {
$(".provision_save_as_template_confirm_button", context).hide();
$(".provision_save_as_template_confirm_button_disabled", context).show();
}
}else{
} else {
$(".provision_save_as_template_confirm_button", context).hide();
$(".provision_save_as_template_confirm_button_disabled", context).hide();
}