diff options
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.jsx | 36 |
1 files changed, 0 insertions, 36 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 deleted file mode 100644 index 509a438d0ae..00000000000 --- a/server/sonar-web/src/main/js/apps/nav/app.jsx +++ /dev/null @@ -1,36 +0,0 @@ -import React from 'react'; -import GlobalNav from './global/global-nav'; -import ComponentNav from './component/component-nav'; -import SettingsNav from './settings/settings-nav'; -import '../../components/workspace/main'; - -export default { - start(options) { - window.requestMessages().done(() => { - this.renderGlobalNav(options); - options.space === 'component' && this.renderComponentNav(options); - options.space === 'settings' && this.renderSettingsNav(options); - }); - }, - - renderGlobalNav(options) { - const el = document.getElementById('global-navigation'); - if (el) { - React.render(<GlobalNav {...options}/>, el); - } - }, - - renderComponentNav(options) { - const el = document.getElementById('context-navigation'); - if (el) { - React.render(<ComponentNav {...options}/>, el); - } - }, - - renderSettingsNav(options) { - const el = document.getElementById('context-navigation'); - if (el) { - React.render(<SettingsNav {...options}/>, el); - } - } -}; |