diff options
Diffstat (limited to 'server/sonar-web/src/main/js/apps/permission-templates')
-rw-r--r-- | server/sonar-web/src/main/js/apps/permission-templates/components/Template.js | 1 | ||||
-rw-r--r-- | server/sonar-web/src/main/js/apps/permission-templates/components/TemplateDetails.js | 5 |
2 files changed, 5 insertions, 1 deletions
diff --git a/server/sonar-web/src/main/js/apps/permission-templates/components/Template.js b/server/sonar-web/src/main/js/apps/permission-templates/components/Template.js index 308af5bd70b..d2cada3b53f 100644 --- a/server/sonar-web/src/main/js/apps/permission-templates/components/Template.js +++ b/server/sonar-web/src/main/js/apps/permission-templates/components/Template.js @@ -209,6 +209,7 @@ class Template extends React.Component { topQualifiers={this.props.topQualifiers}/> <TemplateDetails + organization={this.props.organization} template={this.props.template}/> <HoldersList diff --git a/server/sonar-web/src/main/js/apps/permission-templates/components/TemplateDetails.js b/server/sonar-web/src/main/js/apps/permission-templates/components/TemplateDetails.js index 9a6d0a74410..6bf9f011511 100644 --- a/server/sonar-web/src/main/js/apps/permission-templates/components/TemplateDetails.js +++ b/server/sonar-web/src/main/js/apps/permission-templates/components/TemplateDetails.js @@ -22,6 +22,7 @@ import Defaults from './Defaults'; export default class TemplateDetails extends React.Component { static propTypes = { + organization: React.PropTypes.object, template: React.PropTypes.object.isRequired }; @@ -32,7 +33,9 @@ export default class TemplateDetails extends React.Component { <div className="big-spacer-bottom"> {template.defaultFor.length > 0 && ( <div className="spacer-top js-defaults"> - <Defaults permissionTemplate={template}/> + <Defaults + permissionTemplate={template} + organization={this.props.organization}/> </div> )} |