Skip to content

Commit

Permalink
Merge "Closes-Bug: #1551413 Once monInfraDashboard file (core repo) g…
Browse files Browse the repository at this point in the history
…ets loaded, controllerInfraDashboard file(controller repo) file adds the infoboxes related to controller repo. Have seen cases, that controllerInfraDashboard adds the infoboxes more than once we click on "Dashboard" in quick succession Added a check if controllerInfraDashboard infoboxes are already loaded,don't add them again"
  • Loading branch information
Zuul authored and opencontrail-ci-admin committed Apr 30, 2016
2 parents 64f5203 + 6d17a86 commit e283400
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ function ControllerInfraDashboardLoader() {
rootDir = currMenuObj['resources']['resource'][1]['rootDir'],
renderFn = paramObject['function'];

if (self.monInfraDashboardView == null) {
if(monInfraDashboardLoader.loadedControllerInfoboxes != true) {
monInfraDashboardLoader.loadedControllerInfoboxes = true;
require(['mon-infra-dashboard-view'],function() {
require(['mon-infra-controller-dashboard'], function (ControllerDashboardView) {
self.monInfraDashboardView = new ControllerDashboardView({
Expand All @@ -21,8 +22,6 @@ function ControllerInfraDashboardLoader() {
self.monInfraDashboardView.render();
});
});
} else {
self.renderView(renderFn, hashParams);
}
};

Expand Down

0 comments on commit e283400

Please sign in to comment.