mirror of
https://github.com/Doodle3D/Doodle3D-Slicer.git
synced 2024-11-16 19:17:57 +01:00
rename var printer to printers
This commit is contained in:
parent
3221278853
commit
1f7b48662a
@ -29,7 +29,7 @@ class Settings extends React.Component {
|
|||||||
|
|
||||||
let state;
|
let state;
|
||||||
switch (fieldName) {
|
switch (fieldName) {
|
||||||
case 'printer':
|
case 'printers':
|
||||||
case 'quality':
|
case 'quality':
|
||||||
case 'material':
|
case 'material':
|
||||||
state = {
|
state = {
|
||||||
@ -57,7 +57,7 @@ class Settings extends React.Component {
|
|||||||
<Tabs>
|
<Tabs>
|
||||||
<Tab label="basic">
|
<Tab label="basic">
|
||||||
<div>
|
<div>
|
||||||
<SelectField name="printer" floatingLabelText="Printer" fullWidth>
|
<SelectField name="printers" floatingLabelText="Printer" fullWidth>
|
||||||
{Object.entries(printers).map(([value, { title }]) => (
|
{Object.entries(printers).map(([value, { title }]) => (
|
||||||
<MenuItem key={value} value={value} primaryText={title} />
|
<MenuItem key={value} value={value} primaryText={title} />
|
||||||
))}
|
))}
|
||||||
|
@ -69,7 +69,7 @@ class Interface extends React.Component {
|
|||||||
controlMode: 'translate',
|
controlMode: 'translate',
|
||||||
isSlicing: false,
|
isSlicing: false,
|
||||||
sliced: false,
|
sliced: false,
|
||||||
printer: defaultPrinter,
|
printers: defaultPrinter,
|
||||||
quality: defaultQuality,
|
quality: defaultQuality,
|
||||||
material: defaultMaterial,
|
material: defaultMaterial,
|
||||||
settings: _.merge(
|
settings: _.merge(
|
||||||
@ -190,7 +190,7 @@ class Interface extends React.Component {
|
|||||||
|
|
||||||
render() {
|
render() {
|
||||||
const { width, height, classes, onCompleteActions, defaultPrinter, defaultQuality, defaultMaterial } = this.props;
|
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 (
|
return (
|
||||||
<div className={classes.container}>
|
<div className={classes.container}>
|
||||||
@ -231,7 +231,7 @@ class Interface extends React.Component {
|
|||||||
{sliced && <div className={classes.sliceBar}>
|
{sliced && <div className={classes.sliceBar}>
|
||||||
<RaisedButton className={classes.button} fullWidth onTouchTap={this.reset} primary label="slice again" />
|
<RaisedButton className={classes.button} fullWidth onTouchTap={this.reset} primary label="slice again" />
|
||||||
{onCompleteActions.map(({ title, callback }, i) => (
|
{onCompleteActions.map(({ title, callback }, i) => (
|
||||||
<RaisedButton className={classes.button} key={i} fullWidth onTouchTap={() => callback({ gcode, settings, printer, quality, material })} primary label={title} />
|
<RaisedButton className={classes.button} key={i} fullWidth onTouchTap={() => callback({ gcode, settings, printers, quality, material })} primary label={title} />
|
||||||
))}
|
))}
|
||||||
</div>}
|
</div>}
|
||||||
{isSlicing && <div className={classes.overlay}>
|
{isSlicing && <div className={classes.overlay}>
|
||||||
|
Loading…
Reference in New Issue
Block a user