diff options
author | Stas Vilchik <stas-vilchik@users.noreply.github.com> | 2017-03-20 11:55:40 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-20 11:55:40 +0100 |
commit | ab8377a211348bc4ca17c731a71f6cd80f855eca (patch) | |
tree | dfe921d3d2a0151361045537ecbf55b88a5e4f8a /server/sonar-web/src/main/js | |
parent | ec758b71b1f9c603ebebe00bb357abdd04e43efa (diff) | |
download | sonarqube-ab8377a211348bc4ca17c731a71f6cd80f855eca.tar.gz sonarqube-ab8377a211348bc4ca17c731a71f6cd80f855eca.zip |
SONAR-8974 Update "view" to "portfolio" in UI (#1818)
Diffstat (limited to 'server/sonar-web/src/main/js')
3 files changed, 16 insertions, 3 deletions
diff --git a/server/sonar-web/src/main/js/apps/permissions/project/components/PageHeader.js b/server/sonar-web/src/main/js/apps/permissions/project/components/PageHeader.js index fd3882dbb36..6e8c970e55b 100644 --- a/server/sonar-web/src/main/js/apps/permissions/project/components/PageHeader.js +++ b/server/sonar-web/src/main/js/apps/permissions/project/components/PageHeader.js @@ -54,6 +54,10 @@ class PageHeader extends React.Component { const canApplyPermissionTemplate = configuration != null && configuration.canApplyPermissionTemplate; + const description = ['VW', 'SVW'].includes(this.props.project.qualifier) + ? translate('roles.page.description_portfolio') + : translate('roles.page.description2'); + return ( <header className="page-header"> <h1 className="page-title"> @@ -70,7 +74,7 @@ class PageHeader extends React.Component { </div>} <div className="page-description"> - {translate('roles.page.description2')} + {description} </div> </header> ); diff --git a/server/sonar-web/src/main/js/apps/project-admin/deletion/Deletion.js b/server/sonar-web/src/main/js/apps/project-admin/deletion/Deletion.js index 6bfe208da9c..76c74ed02c8 100644 --- a/server/sonar-web/src/main/js/apps/project-admin/deletion/Deletion.js +++ b/server/sonar-web/src/main/js/apps/project-admin/deletion/Deletion.js @@ -35,7 +35,7 @@ class Deletion extends React.Component { return ( <div className="page page-limited"> - <Header /> + <Header component={this.props.component} /> <Form component={this.props.component} /> </div> ); diff --git a/server/sonar-web/src/main/js/apps/project-admin/deletion/Header.js b/server/sonar-web/src/main/js/apps/project-admin/deletion/Header.js index bc28ea70f3e..68622ed0e78 100644 --- a/server/sonar-web/src/main/js/apps/project-admin/deletion/Header.js +++ b/server/sonar-web/src/main/js/apps/project-admin/deletion/Header.js @@ -17,18 +17,27 @@ * along with this program; if not, write to the Free Software Foundation, * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ +// @flow import React from 'react'; import { translate } from '../../../helpers/l10n'; export default class Header extends React.Component { + props: { + component: { qualifier: string } + }; + render() { + const description = ['VW', 'SVW'].includes(this.props.component.qualifier) + ? translate('portfolio_deletion.page.description') + : translate('project_deletion.page.description'); + return ( <header className="page-header"> <h1 className="page-title"> {translate('deletion.page')} </h1> <div className="page-description"> - {translate('project_deletion.page.description')} + {description} </div> </header> ); |