Update docs

Remove extra API request after document.update
Cleanup
This commit is contained in:
Tom Moor
2018-05-07 22:08:47 -07:00
parent 67f2b3cce4
commit ba0a7b7f4a
7 changed files with 56 additions and 20 deletions

View File

@@ -20,8 +20,9 @@ type Props = {
savingIsDisabled: boolean,
onDiscard: () => *,
onSave: ({
redirect?: boolean,
done?: boolean,
publish?: boolean,
autosave?: boolean,
}) => *,
history: Object,
};
@@ -36,11 +37,11 @@ class DocumentActions extends React.Component<Props> {
};
handleSave = () => {
this.props.onSave({ redirect: true });
this.props.onSave({ done: true });
};
handlePublish = () => {
this.props.onSave({ redirect: true, publish: true });
this.props.onSave({ done: true, publish: true });
};
render() {