diff options
author | Pascal Mugnier <pascal.mugnier@sonarsource.com> | 2018-04-20 07:54:23 +0200 |
---|---|---|
committer | SonarTech <sonartech@sonarsource.com> | 2018-04-26 20:20:52 +0200 |
commit | 601f29b81dab124ceacbce88caac687d70a298c6 (patch) | |
tree | 75ceef7ce322d53ca8090211ee48d741f4e618ca /server | |
parent | 1d2e8b2aea50ff5ff440fb8600341cf9f77312a8 (diff) | |
download | sonarqube-601f29b81dab124ceacbce88caac687d70a298c6.tar.gz sonarqube-601f29b81dab124ceacbce88caac687d70a298c6.zip |
Hide meta data for external rule
Diffstat (limited to 'server')
-rw-r--r-- | server/sonar-web/src/main/js/apps/coding-rules/components/RuleDetailsMeta.tsx | 26 |
1 files changed, 14 insertions, 12 deletions
diff --git a/server/sonar-web/src/main/js/apps/coding-rules/components/RuleDetailsMeta.tsx b/server/sonar-web/src/main/js/apps/coding-rules/components/RuleDetailsMeta.tsx index e5992257d0e..5d5bc25cdae 100644 --- a/server/sonar-web/src/main/js/apps/coding-rules/components/RuleDetailsMeta.tsx +++ b/server/sonar-web/src/main/js/apps/coding-rules/components/RuleDetailsMeta.tsx @@ -241,18 +241,20 @@ export default class RuleDetailsMeta extends React.PureComponent<Props, State> { </h3> </header> - <ul className="coding-rules-detail-properties"> - {this.renderType()} - {this.renderSeverity()} - {this.renderStatus()} - {this.renderScope()} - {this.renderTags()} - {this.renderCreationDate()} - {this.renderRepository()} - {this.renderTemplate()} - {this.renderParentTemplate()} - {this.renderRemediation()} - </ul> + {!ruleDetails.isExternal && ( + <ul className="coding-rules-detail-properties"> + {this.renderType()} + {this.renderSeverity()} + {this.renderStatus()} + {this.renderScope()} + {this.renderTags()} + {this.renderCreationDate()} + {this.renderRepository()} + {this.renderTemplate()} + {this.renderParentTemplate()} + {this.renderRemediation()} + </ul> + )} </div> ); } |