From 49b4a2be59d6e69859cd62a39f23197f8ab9668a Mon Sep 17 00:00:00 2001 From: Rick Companje Date: Thu, 21 Feb 2019 20:13:31 +0100 Subject: [PATCH] separate Download and Print buttons --- src/interface/index.js | 32 +++++++++++++++----------------- 1 file changed, 15 insertions(+), 17 deletions(-) diff --git a/src/interface/index.js b/src/interface/index.js index 3500cec..6787b65 100644 --- a/src/interface/index.js +++ b/src/interface/index.js @@ -235,7 +235,7 @@ class Interface extends React.Component { return; } if (action.target === 'WIFI_PRINT' && !settings.ip) { - this.setState({ error: 'please connect to a WiFi enabled printer' }); + this.setState({ error: 'no Doodle3D WiFi-Box selected' }); return; } if (!mesh) { @@ -336,7 +336,7 @@ class Interface extends React.Component { render() { const { classes, onCancel, selectedPrinter, actions } = this.props; - const { isSlicing, progress, showFullScreen, error, objectDimensions } = this.state; + const { isSlicing, settings, progress, showFullScreen, error, objectDimensions } = this.state; const style = { ...(showFullScreen ? {} : { maxWidth: 'inherit', width: '100%', height: '100%' }) }; @@ -369,27 +369,25 @@ class Interface extends React.Component { /> ) : ( + + this.slice({target: 'DOWNLOAD'})} + /> + this.slice({target:'WIFI_PRINT'})} /> - - - {actions.map((action) => ( - this.slice(action)} /> - ))} - - + )}