mirror of
https://github.com/OpenNebula/one.git
synced 2024-12-23 17:33:56 +03:00
Fix Uncaught exception in config tab
This commit is contained in:
parent
507497b8ce
commit
1729b67061
@ -33,11 +33,15 @@ Config = {
|
|||||||
},
|
},
|
||||||
|
|
||||||
"isTabActionEnabled": function(tab_name, action_name, panel_name){
|
"isTabActionEnabled": function(tab_name, action_name, panel_name){
|
||||||
var enabled;
|
var enabled = false;
|
||||||
if (panel_name) {
|
var config_tab = config['view']['tabs'][tab_name];
|
||||||
enabled = config['view']['tabs'][tab_name]['panel_tabs_actions'][panel_name][action_name];
|
|
||||||
} else {
|
if (config_tab != undefined){
|
||||||
enabled = config['view']['tabs'][tab_name]['actions'][action_name];
|
if (panel_name) {
|
||||||
|
enabled = config_tab['panel_tabs_actions'][panel_name][action_name];
|
||||||
|
} else {
|
||||||
|
enabled = config_tab['actions'][action_name];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return enabled;
|
return enabled;
|
||||||
|
Loading…
Reference in New Issue
Block a user