summaryrefslogtreecommitdiffstats
path: root/ui-react/src
diff options
context:
space:
mode:
authorxuegao <xg353y@intl.att.com>2020-03-24 16:38:01 +0100
committerSébastien Determe <sebastien.determe@intl.att.com>2020-03-25 12:22:29 +0000
commitbe9a2a5b46a96ef97810a3893512f7e42591c640 (patch)
tree272ebca8711472e9f0a7c24125d03e7ae5edf04c /ui-react/src
parenta8b7177d608d84605dd9971f23a7045ba34370b0 (diff)
Fix the loop deploy issue
Fix deploy UI issue and update the deployment payload. Issue-ID: CLAMP-791 Change-Id: I2e652bc321e27be7c21ae12c66e98880e2eed4b5 Signed-off-by: xuegao <xg353y@intl.att.com>
Diffstat (limited to 'ui-react/src')
-rw-r--r--ui-react/src/components/dialogs/Loop/DeployLoopModal.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/ui-react/src/components/dialogs/Loop/DeployLoopModal.js b/ui-react/src/components/dialogs/Loop/DeployLoopModal.js
index 6468e9f9e..d034ee5d7 100644
--- a/ui-react/src/components/dialogs/Loop/DeployLoopModal.js
+++ b/ui-react/src/components/dialogs/Loop/DeployLoopModal.js
@@ -75,14 +75,14 @@ export default class DeployLoopModal extends React.Component {
}
handleClose(){
+ this.setState({ show: false });
this.props.history.push('/');
}
+
handleSave() {
const loopName = this.props.loopCache.getLoopName();
// save the global propserties
LoopService.updateGlobalProperties(loopName, this.state.temporaryPropertiesJson).then(resp => {
- this.setState({ show: false });
-
LoopActionService.performAction(loopName, "deploy").then(pars => {
this.props.showAlert("Action deploy successfully performed");
// refresh status and update loop logs
@@ -94,16 +94,16 @@ export default class DeployLoopModal extends React.Component {
this.refreshStatus(loopName);
});
});
+ this.setState({ show: false });
+ this.props.history.push('/');
}
refreshStatus(loopName) {
LoopActionService.refreshStatus(loopName).then(data => {
this.props.updateLoopFunction(data);
- this.props.history.push('/');
})
.catch(error => {
this.props.showAlert("Refresh status failed");
- this.props.history.push('/');
});
}
handleChange(event) {