aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/nodes/DocumentView.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/views/nodes/DocumentView.tsx')
-rw-r--r--src/client/views/nodes/DocumentView.tsx3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/client/views/nodes/DocumentView.tsx b/src/client/views/nodes/DocumentView.tsx
index bf7e7df97..9b97705a0 100644
--- a/src/client/views/nodes/DocumentView.tsx
+++ b/src/client/views/nodes/DocumentView.tsx
@@ -583,7 +583,7 @@ export class DocumentView extends DocComponent<DocumentViewProps, Document>(Docu
document.nativeIgnoreAspect = undefined;
});
- public static makeCustomViewClicked = undoBatch((document: Doc): void => {
+ public static makeCustomViewClicked = undoBatch((document: Doc, showTitle = undefined): void => {
document.nativeLayout = document.layout;
document.nativeType = document.type;
document.nativeNativeWidth = document.nativeWidth;
@@ -604,6 +604,7 @@ export class DocumentView extends DocComponent<DocumentViewProps, Document>(Docu
let metaKey = "data";
let proto = Doc.GetProto(docTemplate);
Doc.MakeTemplate(fieldTemplate, metaKey, proto);
+ fieldTemplate.showTitle = showTitle;
Doc.ApplyTemplateTo(docTemplate, document, undefined, false);
document.customLayout = document.layout;