diff options
author | Bob Zeleznik <zzzman@gmail.com> | 2020-03-27 23:30:03 -0400 |
---|---|---|
committer | Bob Zeleznik <zzzman@gmail.com> | 2020-03-27 23:30:03 -0400 |
commit | f80aee53be8582956a1f39519938700c3e90cb53 (patch) | |
tree | 8de6544a3970565fd8625fd4bf30292b6d88fe5f /src/client/views/nodes/DocumentContentsView.tsx | |
parent | 692381503f2af93dba2a4f30495a17b7b4deed36 (diff) |
fixed up embedded document view layout references in text boxes to 1) create the template if it doesn't exist and 2) to allow parameters to be passed to templates
Diffstat (limited to 'src/client/views/nodes/DocumentContentsView.tsx')
-rw-r--r-- | src/client/views/nodes/DocumentContentsView.tsx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/client/views/nodes/DocumentContentsView.tsx b/src/client/views/nodes/DocumentContentsView.tsx index 239f414fd..a58115120 100644 --- a/src/client/views/nodes/DocumentContentsView.tsx +++ b/src/client/views/nodes/DocumentContentsView.tsx @@ -78,7 +78,8 @@ export class DocumentContentsView extends React.Component<DocumentViewProps & { return proto instanceof Promise ? undefined : proto; } get layoutDoc() { - return Doc.expandTemplateLayout(this.props.LayoutDoc?.() || Doc.Layout(this.props.Document), this.props.Document); + return Doc.expandTemplateLayout(this.props.LayoutDoc?.() || Doc.Layout(this.props.Document), this.props.Document, + StrCast(this.props.Document.layoutKey)); } CreateBindings(): JsxBindings { |