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)} /> - ))} - - + )}