aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/apps/quality-gates/components/DetailsHeader.js
diff options
context:
space:
mode:
Diffstat (limited to 'server/sonar-web/src/main/js/apps/quality-gates/components/DetailsHeader.js')
-rw-r--r--server/sonar-web/src/main/js/apps/quality-gates/components/DetailsHeader.js8
1 files changed, 3 insertions, 5 deletions
diff --git a/server/sonar-web/src/main/js/apps/quality-gates/components/DetailsHeader.js b/server/sonar-web/src/main/js/apps/quality-gates/components/DetailsHeader.js
index 6acb20708d8..073ce138746 100644
--- a/server/sonar-web/src/main/js/apps/quality-gates/components/DetailsHeader.js
+++ b/server/sonar-web/src/main/js/apps/quality-gates/components/DetailsHeader.js
@@ -59,11 +59,9 @@ export default class DetailsHeader extends React.PureComponent {
{translate('copy')}
</button>
<button id="quality-gate-toggle-default" onClick={this.handleSetAsDefaultClick}>
- {qualityGate.isDefault ? (
- translate('unset_as_default')
- ) : (
- translate('set_as_default')
- )}
+ {qualityGate.isDefault
+ ? translate('unset_as_default')
+ : translate('set_as_default')}
</button>
<button
id="quality-gate-delete"