Fix Deployment Scale Button "minus" (#1728)

Signed-off-by: vshakirova <vshakirova@mirantis.com>
This commit is contained in:
Violetta authored and GitHub committed 2020-12-10 21:18:30 +02:00
1 parent d143b234b7
commit 961a38d52f
2 files changed
+31 -19

No files matched your search

@@ -91,7 +91,7 @@ export class DeploymentScaleDialog extends Component<Props> {
};
desiredReplicasDown = () => {
this.desiredReplicas > 1 && this.desiredReplicas--;
this.desiredReplicas > 0 && this.desiredReplicas--;
};
renderContents() {
@@ -124,7 +124,7 @@ export class DeploymentScaleDialog extends Component<Props> {
</div>
</div>
{warning &&
<div className="warning">
<div className="warning" data-testid="warning">
<Icon material="warning"/>
<Trans>High number of replicas may cause cluster performance issues</Trans>
</div>