diff --git a/ui/modules/infrastructure/infrastructure.js b/ui/modules/infrastructure/infrastructure.js index 8292896f052..ad43108259b 100644 --- a/ui/modules/infrastructure/infrastructure.js +++ b/ui/modules/infrastructure/infrastructure.js @@ -40,7 +40,17 @@ state: state }); }); + }, + + resource: function(args) { + var type = args.type; + + if (type) { + return cloudStack.sections.system.subsections[type]; + } else { + return false; + } } }); }; -}(jQuery, cloudStack)); \ No newline at end of file +}(jQuery, cloudStack));