aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/apps/projectsManagement/Projects.tsx
diff options
context:
space:
mode:
authorStas Vilchik <stas.vilchik@sonarsource.com>2017-12-11 10:39:12 +0100
committerStas Vilchik <stas.vilchik@sonarsource.com>2017-12-11 10:39:12 +0100
commit36685ff3e20875421162206c34aabb31d5b21fdb (patch)
treeb911f951dbb526c87ec9e847740d39b24e61b12c /server/sonar-web/src/main/js/apps/projectsManagement/Projects.tsx
parent0dc65cd83f7ba3946372c7dade945b701dbce65b (diff)
parentae63a6af4780af4527dd453af7ed8923ed6bd07f (diff)
downloadsonarqube-36685ff3e20875421162206c34aabb31d5b21fdb.tar.gz
sonarqube-36685ff3e20875421162206c34aabb31d5b21fdb.zip
Merge branch 'branch-6.7'
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.tsx13
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)}