Skip to content

Commit f2a8082

Browse files
author
Jessica Wang
committed
CLOUDSTACK-6852: UI - add sharedFunction isModuleIncluded().
1 parent 2ac0013 commit f2a8082

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

ui/scripts/sharedFunctions.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1119,6 +1119,16 @@ cloudStack.converters = {
11191119
}
11201120
}
11211121

1122+
function isModuleIncluded(moduleName) {
1123+
for(var moduleIndex = 0; moduleIndex < cloudStack.modules.length; moduleIndex++) {
1124+
if (cloudStack.modules[moduleIndex] == moduleName) {
1125+
return true;
1126+
break;
1127+
}
1128+
}
1129+
return false;
1130+
}
1131+
11221132
//data parameter passed to API call in listView
11231133

11241134
function listViewDataProvider(args, data, options) {

0 commit comments

Comments
 (0)