Feature 2774 Better Zone handling in Sunstone (#282)

* F #2774 added new param to config

* F #2774 Disabled upload when you change the zone

* F #2774 Disabled vnc when you change the zone
This commit is contained in:
juanmont authored and Tino Vázquez committed 2017-05-04 19:45:44 +02:00
1 parent 876e0621fa
commit 9299fdec97
4 files changed
+11

No files matched your search

@@ -145,6 +145,9 @@ define(function(require) {
$('#path_image', context).click();
}
});
if(config["federation_mode"] == "SLAVE"){
$("#upload_image").attr("disabled", "disabled");
}
$('#img_datastore', context).off('change', '.resource_list_select');
$('#img_datastore', context).on('change', '.resource_list_select', function() {
@@ -53,6 +53,10 @@ define(function(require) {
} else {
$(".spice-sunstone-info").hide();
}
if (config["federation_mode"] == "SLAVE") {
$(".vnc-sunstone-info").hide();
}
}
function _post(info, contextTabId) {
@@ -69,6 +69,9 @@ define(function(require) {
} else {
vncIcon = '';
}
if (config["federation_mode"] == "SLAVE") {
vncIcon = '';
}
var cpuMonitoring = 0;
var memoryMonitoring = 0;
+1
View File
@@ -48,6 +48,7 @@
'display_name' : '<%= session[:display_name] %>',
'zone_name' : '<%= session[:zone_name] %>',
'zone_id' : '<%= session[:zone_id] %>',
'federation_mode' : '<%= session[:federation_mode] %>',
'vm_logos' : <%= logos_conf.to_json %>,
'oned_conf' : <%= oned_conf.to_json %>,
'support' : <%= support.to_json %>,