aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/apps/background-tasks
diff options
context:
space:
mode:
authorStas Vilchik <stas.vilchik@sonarsource.com>2017-09-22 10:21:20 +0200
committerStas Vilchik <stas.vilchik@sonarsource.com>2017-09-25 13:40:46 +0200
commit1bc893d06f3f4552d7fe98b63d73879894315864 (patch)
treefb6195eeb01ed59af76ae498f2b1c8eaf11b8e4b /server/sonar-web/src/main/js/apps/background-tasks
parent929e5560d960ea4b682852db2187b93926a215e0 (diff)
downloadsonarqube-1bc893d06f3f4552d7fe98b63d73879894315864.tar.gz
sonarqube-1bc893d06f3f4552d7fe98b63d73879894315864.zip
SONAR-9867 do not promote governance plugin on background tasks page
Diffstat (limited to 'server/sonar-web/src/main/js/apps/background-tasks')
-rw-r--r--server/sonar-web/src/main/js/apps/background-tasks/components/Workers.js17
-rw-r--r--server/sonar-web/src/main/js/apps/background-tasks/components/__tests__/__snapshots__/Workers-test.js.snap14
2 files changed, 5 insertions, 26 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 ? (
- <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>
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
</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>
`;