diff --git a/src/interface/Settings.js b/src/interface/Settings.js index 79fbeab..c2e0cb8 100644 --- a/src/interface/Settings.js +++ b/src/interface/Settings.js @@ -29,7 +29,7 @@ class Settings extends React.Component { let state; switch (fieldName) { - case 'printer': + case 'printers': case 'quality': case 'material': state = { @@ -57,7 +57,7 @@ class Settings extends React.Component {
- + {Object.entries(printers).map(([value, { title }]) => ( ))} diff --git a/src/interface/index.js b/src/interface/index.js index ac901c3..279ce37 100644 --- a/src/interface/index.js +++ b/src/interface/index.js @@ -69,7 +69,7 @@ class Interface extends React.Component { controlMode: 'translate', isSlicing: false, sliced: false, - printer: defaultPrinter, + printers: defaultPrinter, quality: defaultQuality, material: defaultMaterial, settings: _.merge( @@ -190,7 +190,7 @@ class Interface extends React.Component { render() { const { width, height, classes, onCompleteActions, defaultPrinter, defaultQuality, defaultMaterial } = this.props; - const { sliced, isSlicing, progress, gcode, controlMode, settings, printer, quality, material } = this.state; + const { sliced, isSlicing, progress, gcode, controlMode, settings, printers, quality, material } = this.state; return (
@@ -231,7 +231,7 @@ class Interface extends React.Component { {sliced &&
{onCompleteActions.map(({ title, callback }, i) => ( - callback({ gcode, settings, printer, quality, material })} primary label={title} /> + callback({ gcode, settings, printers, quality, material })} primary label={title} /> ))}
} {isSlicing &&