aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/apps/nav/app.jsx
diff options
context:
space:
mode:
Diffstat (limited to 'server/sonar-web/src/main/js/apps/nav/app.jsx')
-rw-r--r--server/sonar-web/src/main/js/apps/nav/app.jsx7
1 files changed, 7 insertions, 0 deletions
diff --git a/server/sonar-web/src/main/js/apps/nav/app.jsx b/server/sonar-web/src/main/js/apps/nav/app.jsx
index 48a708e321b..4b0b6ed5fa0 100644
--- a/server/sonar-web/src/main/js/apps/nav/app.jsx
+++ b/server/sonar-web/src/main/js/apps/nav/app.jsx
@@ -1,12 +1,14 @@
import React from 'react';
import GlobalNav from './global/global-nav';
import ComponentNav from './component/component-nav';
+import SettingsNav from './settings/settings-nav';
export default {
start(options) {
window.requestMessages().done(() => {
this.renderGlobalNav(options);
options.space === 'component' && this.renderComponentNav(options);
+ options.space === 'settings' && this.renderSettingsNav(options);
});
},
@@ -18,5 +20,10 @@ export default {
renderComponentNav(options) {
const el = document.getElementById('context-navigation');
React.render(<ComponentNav {...options}/>, el);
+ },
+
+ renderSettingsNav(options) {
+ const el = document.getElementById('context-navigation');
+ React.render(<SettingsNav {...options}/>, el);
}
};