Show 'checkmark' icon when saved in editor

This commit is contained in:
Tom Moor
2017-07-11 23:24:12 -07:00
parent fb5d461c2b
commit 8ddc3fdf10
6 changed files with 73 additions and 18 deletions

View File

@ -89,11 +89,12 @@ type KeyData = {
case 's':
ev.preventDefault();
ev.stopPropagation();
return this.props.onSave({ redirect: false });
this.props.onSave();
return state;
case 'enter':
ev.preventDefault();
ev.stopPropagation();
this.props.onSave();
this.props.onSave({ redirect: false });
return state;
case 'escape':
return this.props.onCancel();