fixes #162
This commit is contained in:
parent
315e83c593
commit
17fab1782e
1 changed files with 1 additions and 3 deletions
|
@ -155,9 +155,7 @@ class IDEView extends React.Component {
|
|||
}
|
||||
|
||||
warnIfUnsavedChanges() { // eslint-disable-line
|
||||
if (this.props.ide.unsavedChanges
|
||||
&& ((this.props.project.owner && this.props.project.owner.id === this.props.user.id)
|
||||
|| (!this.props.project.owner))) {
|
||||
if (this.props.ide.unsavedChanges) {
|
||||
if (!window.confirm('Are you sure you want to leave this page? You have unsaved changes.')) {
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue