Added event emitters and fixed document deletion

This commit is contained in:
Jori Lallo
2017-08-03 16:48:07 +03:00
parent 0851cf3fc2
commit ad44c67a46
9 changed files with 65 additions and 12 deletions

View File

@ -39,6 +39,7 @@ type Props = {
if (confirm(msg)) {
this.props.document.delete();
this.props.history.push(this.props.document.collection.url);
}
};