aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/apps/projectsManagement/Projects.tsx
diff options
context:
space:
mode:
authorStas Vilchik <stas.vilchik@sonarsource.com>2018-02-16 09:12:23 +0100
committerGitHub <noreply@github.com>2018-02-16 09:12:23 +0100
commit6dabceb176660fbed4195214d39c8f348fbe2c32 (patch)
tree21f322f558b69319ab7c5b2d679dbddb8d32c3c2 /server/sonar-web/src/main/js/apps/projectsManagement/Projects.tsx
parent11bd2fcdf399d62b277e9a69b7a6bc4f3ad696a8 (diff)
downloadsonarqube-6dabceb176660fbed4195214d39c8f348fbe2c32.tar.gz
sonarqube-6dabceb176660fbed4195214d39c8f348fbe2c32.zip
rewrite parts of permission templates app in react (#3070)
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.tsx7
1 files changed, 1 insertions, 6 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 b0872d7532b..7e72fb9b057 100644
--- a/server/sonar-web/src/main/js/apps/projectsManagement/Projects.tsx
+++ b/server/sonar-web/src/main/js/apps/projectsManagement/Projects.tsx
@@ -21,7 +21,6 @@ import * as React from 'react';
import * as classNames from 'classnames';
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';
@@ -44,10 +43,6 @@ export default class Projects extends React.PureComponent<Props> {
}
};
- handleApplyTemplate = (project: Project) => {
- new ApplyTemplateView({ project, organization: this.props.organization }).render();
- };
-
render() {
return (
<div className="boxed-group boxed-group-inner">
@@ -69,8 +64,8 @@ export default class Projects extends React.PureComponent<Props> {
<ProjectRow
currentUser={this.props.currentUser}
key={project.key}
- onApplyTemplate={this.handleApplyTemplate}
onProjectCheck={this.onProjectCheck}
+ organization={this.props.organization && this.props.organization.key}
project={project}
selected={this.props.selection.includes(project.key)}
/>