mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-21 14:50:08 +03:00
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:
parent
876e0621fa
commit
9299fdec97
@ -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;
|
||||
|
@ -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 %>,
|
||||
|
Loading…
x
Reference in New Issue
Block a user