diff options
author | xuegao <xg353y@intl.att.com> | 2019-10-07 14:36:34 +0200 |
---|---|---|
committer | xuegao <xg353y@intl.att.com> | 2019-10-07 14:36:34 +0200 |
commit | 0efeb6b141cb4abe84af8eb38e26d5ed1ab73bb0 (patch) | |
tree | 8c716d7b22828b13a796aa924b1e156a51b9e420 /ui-react/src/components/dialogs/PerformActions.js | |
parent | 52432d6512d2477ad16d46f5ab31a8f77e9f77bd (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/PerformActions.js')
-rw-r--r-- | ui-react/src/components/dialogs/PerformActions.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ui-react/src/components/dialogs/PerformActions.js b/ui-react/src/components/dialogs/PerformActions.js index 9c34e141b..66b192863 100644 --- a/ui-react/src/components/dialogs/PerformActions.js +++ b/ui-react/src/components/dialogs/PerformActions.js @@ -50,14 +50,14 @@ export default class PerformActions extends React.Component { componentDidMount() { const action = this.state.loopAction; const loopName = this.state.loopName; - console.log("Perform action:" + action); + LoopActionService.performAction(loopName, action).then(pars => { - alert("Action " + action + " successfully performed"); + this.props.showAlert("Action " + action + " successfully performed"); // refresh status and update loop logs this.refreshStatus(loopName); }) .catch(error => { - alert("Action " + action + " failed"); + this.props.showAlert("Action " + action + " failed"); // refresh status and update loop logs this.refreshStatus(loopName); }); |