Closes #930 – Don't allow launch of move dialog from drafts

This commit is contained in:
Tom Moor
2019-04-10 21:13:21 -07:00
parent 0c1bf1586d
commit 4a571a088e

View File

@ -101,7 +101,7 @@ class DocumentScene extends React.Component<Props> {
goToMove(ev) {
ev.preventDefault();
if (this.document && !this.document.isArchived) {
if (this.document && !this.document.isArchived && this.document.isDraft) {
this.props.history.push(documentMoveUrl(this.document));
}
}