diff options
author | Stas Vilchik <stas.vilchik@sonarsource.com> | 2017-12-07 09:57:36 +0100 |
---|---|---|
committer | Stas Vilchik <stas.vilchik@sonarsource.com> | 2017-12-11 09:41:15 +0100 |
commit | ae63a6af4780af4527dd453af7ed8923ed6bd07f (patch) | |
tree | 1cdae4d553dc4fddbb3539b8455aed01ee0f545c /server/sonar-web/src/main/js/apps/projectsManagement/Projects.tsx | |
parent | da80cca3a9fc255e0ebaa1f7ea2ba098725ee7c2 (diff) | |
download | sonarqube-ae63a6af4780af4527dd453af7ed8923ed6bd07f.tar.gz sonarqube-ae63a6af4780af4527dd453af7ed8923ed6bd07f.zip |
SONAR-10067 add "Restore Access" action on projects management page
Diffstat (limited to 'server/sonar-web/src/main/js/apps/projectsManagement/Projects.tsx')
-rw-r--r-- | server/sonar-web/src/main/js/apps/projectsManagement/Projects.tsx | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/server/sonar-web/src/main/js/apps/projectsManagement/Projects.tsx b/server/sonar-web/src/main/js/apps/projectsManagement/Projects.tsx index 2a2b3c1cb2c..d3399685066 100644 --- a/server/sonar-web/src/main/js/apps/projectsManagement/Projects.tsx +++ b/server/sonar-web/src/main/js/apps/projectsManagement/Projects.tsx @@ -23,8 +23,10 @@ import ProjectRow from './ProjectRow'; import { Project } from './utils'; import ApplyTemplateView from '../permissions/project/views/ApplyTemplateView'; import { Organization } from '../../app/types'; +import { translate } from '../../helpers/l10n'; interface Props { + currentUser: { login: string }; onProjectDeselected: (project: string) => void; onProjectSelected: (project: string) => void; organization: Organization; @@ -42,7 +44,7 @@ export default class Projects extends React.PureComponent<Props> { } }; - onApplyTemplateClick = (project: Project) => { + handleApplyTemplate = (project: Project) => { new ApplyTemplateView({ project, organization: this.props.organization }).render(); }; @@ -54,18 +56,19 @@ export default class Projects extends React.PureComponent<Props> { <thead> <tr> <th /> - <th>Name</th> + <th>{translate('name')}</th> <th /> - <th>Key</th> - <th className="thin nowrap text-right">Last Analysis</th> + <th>{translate('key')}</th> + <th className="thin nowrap text-right">{translate('last_analysis')}</th> <th /> </tr> </thead> <tbody> {this.props.projects.map(project => ( <ProjectRow + currentUser={this.props.currentUser} key={project.key} - onApplyTemplateClick={this.onApplyTemplateClick} + onApplyTemplate={this.handleApplyTemplate} onProjectCheck={this.onProjectCheck} project={project} selected={this.props.selection.includes(project.key)} |