fix #260
This commit is contained in:
parent
dee9688ece
commit
885967d8e3
2 changed files with 4 additions and 1 deletions
|
@ -9,7 +9,9 @@ function Nav(props) {
|
||||||
<a
|
<a
|
||||||
className="nav__new"
|
className="nav__new"
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
if (props.warnIfUnsavedChanges()) {
|
if (!props.unsavedChanges) {
|
||||||
|
props.newProject();
|
||||||
|
} else if (props.warnIfUnsavedChanges()) {
|
||||||
props.newProject();
|
props.newProject();
|
||||||
}
|
}
|
||||||
}}
|
}}
|
||||||
|
|
|
@ -210,6 +210,7 @@ class IDEView extends React.Component {
|
||||||
stopSketch={this.props.stopSketch}
|
stopSketch={this.props.stopSketch}
|
||||||
showShareModal={this.props.showShareModal}
|
showShareModal={this.props.showShareModal}
|
||||||
openForceAuthentication={this.props.openForceAuthentication}
|
openForceAuthentication={this.props.openForceAuthentication}
|
||||||
|
unsavedChanges={this.props.ide.unsavedChanges}
|
||||||
warnIfUnsavedChanges={this.warnIfUnsavedChanges}
|
warnIfUnsavedChanges={this.warnIfUnsavedChanges}
|
||||||
/>
|
/>
|
||||||
<Toolbar
|
<Toolbar
|
||||||
|
|
Loading…
Reference in a new issue