)}
{!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>
>
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>
`;
>
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>
`;
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;