From 21e116729e9d8529f6a0a70dce996eb4fba3e1e1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Gr=C3=A9goire=20Aubert?= Date: Fri, 24 Nov 2017 17:00:35 +0100 Subject: [PATCH] Apply feedback --- .../sonar-web/src/main/js/apps/projectQualityGate/Form.tsx | 7 ------- .../__tests__/__snapshots__/Form-test.tsx.snap | 5 ----- .../{BuiltInBadge.tsx => BuiltInQualityGateBadge.tsx} | 2 +- .../main/js/apps/quality-gates/components/DetailsHeader.js | 4 ++-- .../src/main/js/apps/quality-gates/components/List.js | 4 ++-- .../{BuiltInBadge.tsx => BuiltInQualityProfileBadge.tsx} | 2 +- .../js/apps/quality-profiles/details/ProfileHeader.tsx | 6 ++++-- .../quality-profiles/details/ProfileInheritanceBox.tsx | 4 ++-- .../main/js/apps/quality-profiles/home/ProfilesListRow.tsx | 4 ++-- 9 files changed, 14 insertions(+), 24 deletions(-) rename server/sonar-web/src/main/js/apps/quality-gates/components/{BuiltInBadge.tsx => BuiltInQualityGateBadge.tsx} (94%) rename server/sonar-web/src/main/js/apps/quality-profiles/components/{BuiltInBadge.tsx => BuiltInQualityProfileBadge.tsx} (94%) diff --git a/server/sonar-web/src/main/js/apps/projectQualityGate/Form.tsx b/server/sonar-web/src/main/js/apps/projectQualityGate/Form.tsx index a2bcf4111cf..909767bfed9 100644 --- a/server/sonar-web/src/main/js/apps/projectQualityGate/Form.tsx +++ b/server/sonar-web/src/main/js/apps/projectQualityGate/Form.tsx @@ -18,7 +18,6 @@ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ import * as React from 'react'; -import { some } from 'lodash'; import { QualityGate } from '../../api/quality-gates'; import Select from '../../components/controls/Select'; import { translate } from '../../helpers/l10n'; @@ -96,11 +95,6 @@ export default class Form extends React.PureComponent { isDefault: gate.isDefault })); - const hasDefault = some(allGates, gate => gate.isDefault); - if (!hasDefault) { - options.unshift({ value: '', label: translate('none') }); - } - return (