summaryrefslogtreecommitdiffstats
path: root/ui-react/src/components/dialogs/DeployLoop.js
diff options
context:
space:
mode:
authorxuegao <xg353y@intl.att.com>2019-10-07 14:36:34 +0200
committerxuegao <xg353y@intl.att.com>2019-10-07 14:36:34 +0200
commit0efeb6b141cb4abe84af8eb38e26d5ed1ab73bb0 (patch)
tree8c716d7b22828b13a796aa924b1e156a51b9e420 /ui-react/src/components/dialogs/DeployLoop.js
parent52432d6512d2477ad16d46f5ab31a8f77e9f77bd (diff)
Fix Sonar vulnerabilities
Fix the vulnerabilities reported by Sonar. Issue-ID: CLAMP-530 Change-Id: I9f6a7fe9ce042045085c371ef3777188b11ffb36 Signed-off-by: xuegao <xg353y@intl.att.com>
Diffstat (limited to 'ui-react/src/components/dialogs/DeployLoop.js')
-rw-r--r--ui-react/src/components/dialogs/DeployLoop.js7
1 files changed, 3 insertions, 4 deletions
diff --git a/ui-react/src/components/dialogs/DeployLoop.js b/ui-react/src/components/dialogs/DeployLoop.js
index 805f0f29b..d71af9240 100644
--- a/ui-react/src/components/dialogs/DeployLoop.js
+++ b/ui-react/src/components/dialogs/DeployLoop.js
@@ -64,14 +64,13 @@ export default class DeployLoop extends React.Component {
LoopService.updateGlobalProperties(loopName, this.state.temporaryPropertiesJson).then(resp => {
this.setState({ show: false });
- console.log("Perform action: deploy");
LoopActionService.performAction(loopName, "deploy").then(pars => {
- alert("Action deploy successfully performed");
+ this.props.showAlert("Action deploy successfully performed");
// refresh status and update loop logs
this.refreshStatus(loopName);
})
.catch(error => {
- alert("Action deploy failed");
+ this.props.showAlert("Action deploy failed");
// refresh status and update loop logs
this.refreshStatus(loopName);
});
@@ -84,7 +83,7 @@ export default class DeployLoop extends React.Component {
this.props.history.push('/');
})
.catch(error => {
- alert("Refresh status failed");
+ this.props.showAlert("Refresh status failed");
this.props.history.push('/');
});
}