From: Stas Vilchik Date: Fri, 22 Sep 2017 08:21:20 +0000 (+0200) Subject: SONAR-9867 do not promote governance plugin on background tasks page X-Git-Tag: 6.6-RC1~253 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=1bc893d06f3f4552d7fe98b63d73879894315864;p=sonarqube.git SONAR-9867 do not promote governance plugin on background tasks page --- 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;