diff options
author | Xue Gao <xg353y@intl.att.com> | 2019-08-02 13:24:35 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2019-08-02 13:24:35 +0000 |
commit | 6cfa53edcefa8472ccbd3c2d3c075392e769f071 (patch) | |
tree | f58a9b6c9f8b7ffe024adc090f7fbe2a8c77011f /ui-react/src/components/dialogs/OpenLoop/OpenLoopModal.js | |
parent | 07110fe1c8dc6998100c0c9f4b7b168983c0816e (diff) | |
parent | 83ce0764646950d44355e5cb484e008913abeb5f (diff) |
Merge "Add saving + rework"
Diffstat (limited to 'ui-react/src/components/dialogs/OpenLoop/OpenLoopModal.js')
-rw-r--r-- | ui-react/src/components/dialogs/OpenLoop/OpenLoopModal.js | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/ui-react/src/components/dialogs/OpenLoop/OpenLoopModal.js b/ui-react/src/components/dialogs/OpenLoop/OpenLoopModal.js index 0bf71580a..fbfc727eb 100644 --- a/ui-react/src/components/dialogs/OpenLoop/OpenLoopModal.js +++ b/ui-react/src/components/dialogs/OpenLoop/OpenLoopModal.js @@ -44,7 +44,6 @@ export default class OpenLoopModal extends React.Component { this.getLoopNames = this.getLoopNames.bind(this); this.handleOpen = this.handleOpen.bind(this); - this.getModel = this.getModel.bind(this); this.handleClose = this.handleClose.bind(this); this.handleDropdownListChange = this.handleDropdownListChange.bind(this); this.state = { @@ -74,18 +73,11 @@ export default class OpenLoopModal extends React.Component { }); } - getModel() { - LoopService.getLoop(this.state.chosenLoopName).then(loop => { - console.debug("Settingloop cache with json"); - this.props.updateLoopCacheFunction(loop); - }); - } - handleOpen() { console.info("Loop " + this.state.chosenLoopName + " is chosen"); this.setState({ show: false }); this.props.history.push('/'); - this.getModel(); + this.props.loadLoopFunction(this.state.chosenLoopName); } render() { |