aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authoryipstanley <stanley_yip@brown.edu>2019-06-28 16:49:03 -0400
committeryipstanley <stanley_yip@brown.edu>2019-06-28 16:49:03 -0400
commit6c0a63e0c82a4b579e64f3c7a8095ee632e6b631 (patch)
tree79f9a86eecd8a430e51ae8ac65571836a69ac5cb /src
parentca95473dca3b577bf05aed3c76ccf800fc670220 (diff)
parentf745ee91930c2b559098c5c6d75d5108edca2f01 (diff)
Merge branch 'master' of https://github.com/browngraphicslab/Dash-Web
Diffstat (limited to 'src')
-rw-r--r--src/client/views/nodes/DocumentContentsView.tsx3
-rw-r--r--src/client/views/nodes/KeyValueBox.tsx1
-rw-r--r--src/new_fields/Doc.ts1
3 files changed, 4 insertions, 1 deletions
diff --git a/src/client/views/nodes/DocumentContentsView.tsx b/src/client/views/nodes/DocumentContentsView.tsx
index 0da4888a1..240b21714 100644
--- a/src/client/views/nodes/DocumentContentsView.tsx
+++ b/src/client/views/nodes/DocumentContentsView.tsx
@@ -52,7 +52,8 @@ export class DocumentContentsView extends React.Component<DocumentViewProps & {
const layout = Cast(layoutDoc[this.props.layoutKey], "string");
if (layout === undefined) {
return this.props.Document.data ?
- "<FieldView {...props} fieldKey='data' />" :
+ "null" :
+ // "<FieldView {...props} fieldKey='data' />" :
KeyValueBox.LayoutString(layoutDoc.proto ? "proto" : "");
} else if (typeof layout === "string") {
return layout;
diff --git a/src/client/views/nodes/KeyValueBox.tsx b/src/client/views/nodes/KeyValueBox.tsx
index 0e798d291..eee4ec670 100644
--- a/src/client/views/nodes/KeyValueBox.tsx
+++ b/src/client/views/nodes/KeyValueBox.tsx
@@ -207,6 +207,7 @@ export class KeyValueBox extends React.Component<FieldViewProps> {
}
render() {
+ return null;
let dividerDragger = this.splitPercentage === 0 ? (null) :
<div className="keyValueBox-dividerDragger" style={{ transform: `translate(calc(${100 - this.splitPercentage}% - 5px), 0px)` }}>
<div className="keyValueBox-dividerDraggerThumb" onPointerDown={this.onDividerDown} />
diff --git a/src/new_fields/Doc.ts b/src/new_fields/Doc.ts
index 27dcfba08..0340806ef 100644
--- a/src/new_fields/Doc.ts
+++ b/src/new_fields/Doc.ts
@@ -281,6 +281,7 @@ export namespace Doc {
}
export function expandTemplateLayout(templateLayoutDoc: Doc, dataDoc?: Doc) {
+ return templateLayoutDoc;
let resolvedDataDoc = (templateLayoutDoc !== dataDoc) ? dataDoc : undefined;
if (!dataDoc || !(templateLayoutDoc && !(Cast(templateLayoutDoc.layout, Doc) instanceof Doc) && resolvedDataDoc && resolvedDataDoc !== templateLayoutDoc)) {
return templateLayoutDoc;