From 83ce0764646950d44355e5cb484e008913abeb5f Mon Sep 17 00:00:00 2001 From: sebdet Date: Fri, 2 Aug 2019 14:53:59 +0200 Subject: Add saving + rework Rework of the async calls to the backend + add saving of the properties to backend + rework of the loop loading Issue-ID: CLAMP-447 Change-Id: I126c88b3532613e6d4702e63c39a2735b98d132c Signed-off-by: sebdet --- ui-react/src/components/dialogs/OpenLoop/OpenLoopModal.js | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'ui-react/src/components/dialogs/OpenLoop/OpenLoopModal.js') diff --git a/ui-react/src/components/dialogs/OpenLoop/OpenLoopModal.js b/ui-react/src/components/dialogs/OpenLoop/OpenLoopModal.js index 0bf71580..fbfc727e 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() { -- cgit