]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-9867 do not promote governance plugin on background tasks page
authorStas Vilchik <stas.vilchik@sonarsource.com>
Fri, 22 Sep 2017 08:21:20 +0000 (10:21 +0200)
committerStas Vilchik <stas.vilchik@sonarsource.com>
Mon, 25 Sep 2017 11:40:46 +0000 (13:40 +0200)
server/sonar-web/src/main/js/apps/background-tasks/components/Workers.js
server/sonar-web/src/main/js/apps/background-tasks/components/__tests__/__snapshots__/Workers-test.js.snap
server/sonar-web/src/main/less/init/forms.less

index 9f3935e8d9072b6d60a9a46789d18b8d79eedf88..670cca4450b55720335746f1a0fc525334a03f8d 100644 (file)
@@ -95,18 +95,11 @@ export default class Workers extends React.PureComponent {
         )}
 
         {!loading &&
-          (canSetWorkerCount ? (
-            <Tooltip overlay={translate('background_tasks.change_number_of_workers')}>
-              <a className="icon-edit spacer-left" href="#" onClick={this.handleChangeClick} />
-            </Tooltip>
-          ) : (
-            <a
-              className="button button-promote spacer-left"
-              href="https://redirect.sonarsource.com/plugins/governance.html"
-              target="_blank">
-              {translate('background_tasks.add_more_with_governance')}
-            </a>
-          ))}
+        canSetWorkerCount && (
+          <Tooltip overlay={translate('background_tasks.change_number_of_workers')}>
+            <a className="icon-edit spacer-left" href="#" onClick={this.handleChangeClick} />
+          </Tooltip>
+        )}
 
         {formOpen && <WorkersForm onClose={this.closeForm} workerCount={this.state.workerCount} />}
       </div>
index 7951ffa70e3499306346f8fe59d0850d5e105465..0a54eb449723505205657eee284cc98e5704e623 100644 (file)
@@ -84,13 +84,6 @@ exports[`renders 3`] = `
   >
     1
   </strong>
-  <a
-    className="button button-promote spacer-left"
-    href="https://redirect.sonarsource.com/plugins/governance.html"
-    target="_blank"
-  >
-    background_tasks.add_more_with_governance
-  </a>
 </div>
 `;
 
@@ -110,13 +103,6 @@ exports[`renders 4`] = `
   >
     2
   </strong>
-  <a
-    className="button button-promote spacer-left"
-    href="https://redirect.sonarsource.com/plugins/governance.html"
-    target="_blank"
-  >
-    background_tasks.add_more_with_governance
-  </a>
 </div>
 `;
 
index 99faeac27f18d861c2d69a9068c8f41e9576565c..b5d7bbd023feb0fdfb4d822650face19be2950f0 100644 (file)
@@ -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;