aboutsummaryrefslogtreecommitdiff
path: root/src/client/documents/Documents.ts
diff options
context:
space:
mode:
authorgeireann <geireann.lindfield@gmail.com>2021-08-25 07:15:35 -0400
committergeireann <geireann.lindfield@gmail.com>2021-08-25 07:15:35 -0400
commit424315b74d9925fc040d85d6972ab83422ab518e (patch)
treef0fb8173722d94188b1403413502a44dd137b6fd /src/client/documents/Documents.ts
parent9ea2fdf4c127ba2715159209327e2a51f0482dee (diff)
UI updates - more needed
Diffstat (limited to 'src/client/documents/Documents.ts')
-rw-r--r--src/client/documents/Documents.ts4
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"
});