Workable document moving

This commit is contained in:
Jori Lallo
2017-09-04 14:48:56 -07:00
parent 70d352e193
commit 483bf29cc4
14 changed files with 414 additions and 66 deletions

View File

@ -51,6 +51,10 @@ type Props = {
}
};
onMove = () => {
this.props.history.push(`${this.props.document.url}/move`);
};
render() {
const document = get(this.props, 'document');
if (document) {
@ -69,6 +73,7 @@ type Props = {
New document
</DropdownMenuItem>
</div>}
<DropdownMenuItem onClick={this.onMove}>Move</DropdownMenuItem>
<DropdownMenuItem onClick={this.onExport}>Export</DropdownMenuItem>
{allowDelete &&
<DropdownMenuItem onClick={this.onDelete}>Delete</DropdownMenuItem>}