mirror of
https://github.com/Doodle3D/Doodle3D-Slicer.git
synced 2024-11-22 21:47:59 +01:00
also pass settings to callback
This commit is contained in:
parent
057fd4e094
commit
6bdcb6cb23
@ -169,7 +169,7 @@ class Interface extends React.Component {
|
|||||||
|
|
||||||
render() {
|
render() {
|
||||||
const { width, height, classes, onCompleteActions } = this.props;
|
const { width, height, classes, onCompleteActions } = this.props;
|
||||||
const { sliced, isSlicing, progress, gcode, controlMode } = this.state;
|
const { sliced, isSlicing, progress, gcode, controlMode, settings } = this.state;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div style={{ width, height }} className={classes.container}>
|
<div style={{ width, height }} className={classes.container}>
|
||||||
@ -207,7 +207,7 @@ class Interface extends React.Component {
|
|||||||
{sliced && <Paper className={classes.sliceBar}>
|
{sliced && <Paper 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.gcode)} primary label={title} />
|
<RaisedButton className={classes.button} key={i} fullWidth onTouchTap={() => callback(gcode.gcode, settings)} primary label={title} />
|
||||||
))}
|
))}
|
||||||
</Paper>}
|
</Paper>}
|
||||||
{isSlicing && <div className={classes.overlay}>
|
{isSlicing && <div className={classes.overlay}>
|
||||||
|
Loading…
Reference in New Issue
Block a user