summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorxuegao <xg353y@intl.att.com>2020-03-18 12:55:22 +0100
committerxuegao <xg353y@intl.att.com>2020-03-18 14:59:41 +0100
commita2625fe6c6819fc41a6f4f5a9625cd9ba753bc72 (patch)
tree7bfe383162e7c6343a791302596943b65b1cc11b
parentfa1e4db9078caa149ab6d19697d5863b1103aaa8 (diff)
Fix modify model UI bug
Fix the modify model UI bug, update the loopCache before closing the window. Issue-ID: CLAMP-783 Change-Id: Ide103f66b103ca2f51e8b7bbeda883db6626d027 Signed-off-by: xuegao <xg353y@intl.att.com>
-rw-r--r--ui-react/src/components/dialogs/Loop/ModifyLoopModal.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/ui-react/src/components/dialogs/Loop/ModifyLoopModal.js b/ui-react/src/components/dialogs/Loop/ModifyLoopModal.js
index 7c16b7863..42c03daca 100644
--- a/ui-react/src/components/dialogs/Loop/ModifyLoopModal.js
+++ b/ui-react/src/components/dialogs/Loop/ModifyLoopModal.js
@@ -162,14 +162,14 @@ export default class ModifyLoopModal extends React.Component {
handleAdd() {
LoopService.addOperationalPolicyType(this.state.loopCache.getLoopName(),this.state.selectedRowData.policyModelType,this.state.selectedRowData.version);
- this.handleClose();
this.props.loadLoopFunction(this.state.loopCache.getLoopName());
+ this.handleClose();
}
handleRemove() {
LoopService.removeOperationalPolicyType(this.state.loopCache.getLoopName(),this.state.selectedRowData.policyModelType,this.state.selectedRowData.version);
- this.handleClose();
this.props.loadLoopFunction(this.state.loopCache.getLoopName());
+ this.handleClose();
}
render() {