feat: duplicate a document as draft (#6782)
* feat: duplicate a document as draft * review * Default `publish` toggle to match current document Ensures duplicating a draft does not publish it. --------- Co-authored-by: Tom Moor <tom.moor@gmail.com>
This commit is contained in:
@@ -509,8 +509,11 @@ export default class Document extends ParanoidModel {
|
||||
move = (collectionId: string, parentDocumentId?: string | undefined) =>
|
||||
this.store.move(this.id, collectionId, parentDocumentId);
|
||||
|
||||
duplicate = (options?: { title?: string; recursive?: boolean }) =>
|
||||
this.store.duplicate(this, options);
|
||||
duplicate = (options?: {
|
||||
title?: string;
|
||||
publish?: boolean;
|
||||
recursive?: boolean;
|
||||
}) => this.store.duplicate(this, options);
|
||||
|
||||
@computed
|
||||
get pinned(): boolean {
|
||||
|
||||
Reference in New Issue
Block a user