Fix modify model UI bug 56/103856/2
authorxuegao <xg353y@intl.att.com>
Wed, 18 Mar 2020 11:55:22 +0000 (12:55 +0100)
committerxuegao <xg353y@intl.att.com>
Wed, 18 Mar 2020 13:59:41 +0000 (14:59 +0100)
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>
ui-react/src/components/dialogs/Loop/ModifyLoopModal.js

index 7c16b78..42c03da 100644 (file)
@@ -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() {