aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/apps/overview/app.jsx
diff options
context:
space:
mode:
Diffstat (limited to 'server/sonar-web/src/main/js/apps/overview/app.jsx')
-rw-r--r--server/sonar-web/src/main/js/apps/overview/app.jsx21
1 files changed, 11 insertions, 10 deletions
diff --git a/server/sonar-web/src/main/js/apps/overview/app.jsx b/server/sonar-web/src/main/js/apps/overview/app.jsx
index 4f85ebd82f1..475b1c0348f 100644
--- a/server/sonar-web/src/main/js/apps/overview/app.jsx
+++ b/server/sonar-web/src/main/js/apps/overview/app.jsx
@@ -6,16 +6,17 @@ const $ = jQuery;
export default {
start(options) {
- _.extend(options, window.overview);
$('html').toggleClass('dashboard-page', options.component.hasSnapshot);
- const el = document.querySelector(options.el);
- const inner = options.component.hasSnapshot ? (
- <Main
- component={options.component}
- gate={options.gate}
- measures={options.measures}
- leak={options.leak}/>
- ) : <Empty/>;
- React.render(inner, el);
+ window.requestMessages().done(() => {
+ const el = document.querySelector(options.el);
+ const inner = options.component.hasSnapshot ? (
+ <Main
+ component={options.component}
+ gate={options.gate}
+ measures={options.measures}
+ leak={options.leak}/>
+ ) : <Empty/>;
+ React.render(inner, el);
+ });
}
};