diff --git a/viewer/gui/EditRoutePage.jsx b/viewer/gui/EditRoutePage.jsx index 41c2bc5a..053d33df 100644 --- a/viewer/gui/EditRoutePage.jsx +++ b/viewer/gui/EditRoutePage.jsx @@ -264,11 +264,12 @@ class EditRouteDialog extends React.Component{ inverted: newInverted }) }} + close={false} >Invert {this.props.editAction && { - this.props.closeCallback(); + this.save(); this.props.editAction(); }} > @@ -278,23 +279,25 @@ class EditRouteDialog extends React.Component{
< DB name="load" onClick={this.loadNewRoute} + close={false} >Load { canDelete && {this.delete(); }} + onClick={() => {this.delete(); }} close={false} >Delete} this.save(true)} + close={false} disabled={(!this.state.nameChanged || existingName)} > Save As Cancel {this.state.nameChanged ? this.save()} disabled={existingName} + close={false} > Rename :