diff options
Diffstat (limited to 'src/client/documents/Documents.ts')
-rw-r--r-- | src/client/documents/Documents.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/documents/Documents.ts b/src/client/documents/Documents.ts index f3a472329..c6ab35d52 100644 --- a/src/client/documents/Documents.ts +++ b/src/client/documents/Documents.ts @@ -1182,7 +1182,7 @@ export namespace DocUtils { }, icon: "compress-arrows-alt" }); ContextMenu.Instance.addItem({ - description: "Add Template Doc ...", + description: "Create document", subitems: DocListCast(Cast(Doc.UserDoc().myItemCreators, Doc, null)?.data).filter(btnDoc => !btnDoc.hidden).map(btnDoc => Cast(btnDoc?.dragFactory, Doc, null)).filter(doc => doc && doc !== Doc.UserDoc().emptyPresentation).map((dragDoc, i) => ({ description: ":" + StrCast(dragDoc.title), event: undoBatch((args: { x: number, y: number }) => { @@ -1195,7 +1195,7 @@ export namespace DocUtils { docAdder?.(newDoc); } }), - icon: "eye" + icon: Doc.toIcon(Cast(dragDoc.type, Doc, null)), })) as ContextMenuProps[], icon: "eye" }); |