From 1bc893d06f3f4552d7fe98b63d73879894315864 Mon Sep 17 00:00:00 2001 From: Stas Vilchik Date: Fri, 22 Sep 2017 10:21:20 +0200 Subject: [PATCH] SONAR-9867 do not promote governance plugin on background tasks page --- .../apps/background-tasks/components/Workers.js | 17 +++++------------ .../__snapshots__/Workers-test.js.snap | 14 -------------- server/sonar-web/src/main/less/init/forms.less | 14 -------------- 3 files changed, 5 insertions(+), 40 deletions(-) diff --git a/server/sonar-web/src/main/js/apps/background-tasks/components/Workers.js b/server/sonar-web/src/main/js/apps/background-tasks/components/Workers.js index 9f3935e8d90..670cca4450b 100644 --- a/server/sonar-web/src/main/js/apps/background-tasks/components/Workers.js +++ b/server/sonar-web/src/main/js/apps/background-tasks/components/Workers.js @@ -95,18 +95,11 @@ export default class Workers extends React.PureComponent { )} {!loading && - (canSetWorkerCount ? ( - - - - ) : ( - - {translate('background_tasks.add_more_with_governance')} - - ))} + canSetWorkerCount && ( + + + + )} {formOpen && } diff --git a/server/sonar-web/src/main/js/apps/background-tasks/components/__tests__/__snapshots__/Workers-test.js.snap b/server/sonar-web/src/main/js/apps/background-tasks/components/__tests__/__snapshots__/Workers-test.js.snap index 7951ffa70e3..0a54eb44972 100644 --- a/server/sonar-web/src/main/js/apps/background-tasks/components/__tests__/__snapshots__/Workers-test.js.snap +++ b/server/sonar-web/src/main/js/apps/background-tasks/components/__tests__/__snapshots__/Workers-test.js.snap @@ -84,13 +84,6 @@ exports[`renders 3`] = ` > 1 - - background_tasks.add_more_with_governance - `; @@ -110,13 +103,6 @@ exports[`renders 4`] = ` > 2 - - background_tasks.add_more_with_governance - `; diff --git a/server/sonar-web/src/main/less/init/forms.less b/server/sonar-web/src/main/less/init/forms.less index 99faeac27f1..b5d7bbd023f 100644 --- a/server/sonar-web/src/main/less/init/forms.less +++ b/server/sonar-web/src/main/less/init/forms.less @@ -254,20 +254,6 @@ input[type='submit'].button-grey { padding: 0 6px; } -.button-promote, -input[type='submit'].button-promote { - border-color: #5041d2; - background-color: #5041d2; - color: #fff; - transition: background-color 0.3s ease; - - &:hover, - &:focus, - &.active { - background-color: darken(#5041d2, 10%); - } -} - .button-group { display: inline-block; vertical-align: middle; -- 2.39.5