diff options
author | Stas Vilchik <vilchiks@gmail.com> | 2016-11-04 11:36:54 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-11-04 11:36:54 +0100 |
commit | 377cd3114a79d7b3f27bb176aebe301851acac9c (patch) | |
tree | 925a212e1d3ae9fa3bcb8d9c1bf743612218fc0f /server/sonar-web/src/main/js/apps/projects/components/FavoriteProjects.js | |
parent | 33be8c3500e678c3d56202a8f204aabe1f1e84bd (diff) | |
download | sonarqube-377cd3114a79d7b3f27bb176aebe301851acac9c.tar.gz sonarqube-377cd3114a79d7b3f27bb176aebe301851acac9c.zip |
SONAR-8300 Create new "Projects" page [5th iteration] (#1357)
Diffstat (limited to 'server/sonar-web/src/main/js/apps/projects/components/FavoriteProjects.js')
-rw-r--r-- | server/sonar-web/src/main/js/apps/projects/components/FavoriteProjects.js | 35 |
1 files changed, 5 insertions, 30 deletions
diff --git a/server/sonar-web/src/main/js/apps/projects/components/FavoriteProjects.js b/server/sonar-web/src/main/js/apps/projects/components/FavoriteProjects.js index 2e1410d8e0c..22fd723958b 100644 --- a/server/sonar-web/src/main/js/apps/projects/components/FavoriteProjects.js +++ b/server/sonar-web/src/main/js/apps/projects/components/FavoriteProjects.js @@ -18,12 +18,7 @@ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ import React from 'react'; -import Helmet from 'react-helmet'; -import PageHeaderContainer from './PageHeaderContainer'; import ProjectsListContainer from './ProjectsListContainer'; -import ProjectsListHeaderContainer from './ProjectsListHeaderContainer'; -import GlobalMessagesContainer from '../../../app/components/GlobalMessagesContainer'; -import { translate } from '../../../helpers/l10n'; import '../styles.css'; export default class FavoriteProjects extends React.Component { @@ -33,42 +28,22 @@ export default class FavoriteProjects extends React.Component { }; componentDidMount () { - document.querySelector('html').classList.add('dashboard-page'); this.props.fetchFavoriteProjects(); } - componentWillUnmount () { - document.querySelector('html').classList.remove('dashboard-page'); - } - render () { if (!this.props.user) { return null; } return ( - <div id="projects-page" className="page page-limited"> - <Helmet title={translate('projects.page')} titleTemplate="SonarQube - %s"/> - - <GlobalMessagesContainer/> - - <div className="page-with-sidebar page-with-left-sidebar"> - <div className="page-main"> - <div className="projects-list-container"> - <ProjectsListHeaderContainer/> - <ProjectsListContainer/> - </div> + <div className="page-with-sidebar"> + <div className="page-main"> + <div className="projects-list-container"> + <ProjectsListContainer/> </div> - <aside className="page-sidebar-fixed projects-sidebar"> - <PageHeaderContainer/> - <div className="search-navigator-facets-list"> - <div className="projects-facets-header"> - <h3>Filters</h3> - </div> - <p className="note text-center">Filters are not available.</p> - </div> - </aside> </div> + <aside className="page-sidebar-fixed projects-sidebar"/> </div> ); } |