]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-8658 apply feedback
authorStas Vilchik <vilchiks@gmail.com>
Thu, 9 Feb 2017 16:02:20 +0000 (17:02 +0100)
committerStas Vilchik <vilchiks@gmail.com>
Thu, 9 Feb 2017 16:02:20 +0000 (17:02 +0100)
server/sonar-web/src/main/js/apps/permission-templates/components/Template.js
server/sonar-web/src/main/js/apps/permission-templates/components/TemplateDetails.js

index 308af5bd70ba47fecaf43f9ba07290f6fcaa7763..d2cada3b53f5ab17bd2658312a38de85a51103bc 100644 (file)
@@ -209,6 +209,7 @@ class Template extends React.Component {
               topQualifiers={this.props.topQualifiers}/>
 
           <TemplateDetails
+              organization={this.props.organization}
               template={this.props.template}/>
 
           <HoldersList
index 9a6d0a744109848ea907f7e8b0c2fe11a358c792..6bf9f011511df3ea5fa143b3033e124e9e546d34 100644 (file)
@@ -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>
           )}