feat: Allow moving templates between collections (#1454)

- Allow template move in document policy
- fix: Ensure that document is not added to collection structure in documentMover command
- fix: Moving a template should now show nested documents as options
- fix: Hitting 'm' should not allow moving a draft
- fix: Styling of seperators on move screen
This commit is contained in:
Tom Moor
2020-08-20 19:46:29 -07:00
committed by GitHub
parent 0555fd2caa
commit 6dd6768f07
5 changed files with 118 additions and 82 deletions

View File

@@ -133,7 +133,7 @@ class DocumentScene extends React.Component<Props> {
ev.preventDefault();
const { document, abilities } = this.props;
if (abilities.update) {
if (abilities.move) {
this.props.history.push(documentMoveUrl(document));
}
}