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

This commit is contained in:
Abel Coronado authored and Tino Vázquez committed 2017-06-13 13:29:24 +02:00
1 parent 174dc9cbf3
commit 632cff4fb9
1 file changed
+2 -2
@@ -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();
}