From 5b5a13b869f87954e0b519d8179068e1356468b7 Mon Sep 17 00:00:00 2001 From: Wouter Admiraal Date: Wed, 19 Jun 2019 11:39:33 +0200 Subject: [PATCH] Remove inappropriate usage of outline badges --- .../src/main/js/apps/overview/components/EmptyOverview.tsx | 4 +--- .../__tests__/__snapshots__/EmptyOverview-test.tsx.snap | 6 +----- .../sonar-web/src/main/js/components/charts/BubbleChart.tsx | 5 +---- 3 files changed, 3 insertions(+), 12 deletions(-) diff --git a/server/sonar-web/src/main/js/apps/overview/components/EmptyOverview.tsx b/server/sonar-web/src/main/js/apps/overview/components/EmptyOverview.tsx index 155ec59ce3a..f3b647f23dc 100644 --- a/server/sonar-web/src/main/js/apps/overview/components/EmptyOverview.tsx +++ b/server/sonar-web/src/main/js/apps/overview/components/EmptyOverview.tsx @@ -111,9 +111,7 @@ export function WarningMessage({ id={message} values={{ branchName: branchLike.name, - branchType: ( -
{translate('branches.main_branch')}
- ) + branchType: translate('branches.main_branch') }} /> diff --git a/server/sonar-web/src/main/js/apps/overview/components/__tests__/__snapshots__/EmptyOverview-test.tsx.snap b/server/sonar-web/src/main/js/apps/overview/components/__tests__/__snapshots__/EmptyOverview-test.tsx.snap index 22173c3d13f..f789b6aff75 100644 --- a/server/sonar-web/src/main/js/apps/overview/components/__tests__/__snapshots__/EmptyOverview-test.tsx.snap +++ b/server/sonar-web/src/main/js/apps/overview/components/__tests__/__snapshots__/EmptyOverview-test.tsx.snap @@ -276,11 +276,7 @@ exports[`should render warning message 1`] = ` values={ Object { "branchName": "master", - "branchType":
- branches.main_branch -
, + "branchType": "branches.main_branch", } } /> diff --git a/server/sonar-web/src/main/js/components/charts/BubbleChart.tsx b/server/sonar-web/src/main/js/components/charts/BubbleChart.tsx index c828678d77e..5d357eb9655 100644 --- a/server/sonar-web/src/main/js/components/charts/BubbleChart.tsx +++ b/server/sonar-web/src/main/js/components/charts/BubbleChart.tsx @@ -328,10 +328,7 @@ export default class BubbleChart extends React.PureComponent, State>
- 1 })} - onClick={this.resetZoom} - to="#"> + {this.getZoomLevelLabel()} -- 2.39.5