mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-20 20:02:38 +09:00
feature #3077: Fix templates tab check
This commit is contained in:
1 parent
212381f4a8
commit
41be97f0df
1 file changed
+6
-2
@@ -63,8 +63,12 @@ Config = {
|
||||
},
|
||||
|
||||
"isTemplateCreationTabEnabled": function(template_tab_name){
|
||||
var enabled = config['view']['tabs']['templates-tab']['template_creation_tabs'][template_tab_name];
|
||||
return enabled;
|
||||
if (config['view']['tabs']['templates-tab']){
|
||||
var enabled = config['view']['tabs']['templates-tab']['template_creation_tabs'][template_tab_name];
|
||||
return enabled;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
},
|
||||
|
||||
"dashboardWidgets": function(per_row){
|
||||
|
||||
Reference in new issue
Block a user