diff options
author | bob <bcz@cs.brown.edu> | 2019-10-21 16:16:59 -0400 |
---|---|---|
committer | bob <bcz@cs.brown.edu> | 2019-10-21 16:16:59 -0400 |
commit | 8efea66fd5723becf36dd6e3b2a95435d8528748 (patch) | |
tree | 45854fad05fec318f3c2cc05ff385374f5447ecc /src/client/views/nodes/WebBox.tsx | |
parent | 4d02c9b581a22da777232124f2b1a96f8e342285 (diff) |
got rid of fieldExt from layoutstring. set directly by annotated fields
Diffstat (limited to 'src/client/views/nodes/WebBox.tsx')
-rw-r--r-- | src/client/views/nodes/WebBox.tsx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/client/views/nodes/WebBox.tsx b/src/client/views/nodes/WebBox.tsx index 907e71627..2184325a9 100644 --- a/src/client/views/nodes/WebBox.tsx +++ b/src/client/views/nodes/WebBox.tsx @@ -28,9 +28,9 @@ type WebDocument = makeInterface<[typeof documentSchema]>; const WebDocument = makeInterface(documentSchema); @observer -export class WebBox extends DocAnnotatableComponent<FieldViewProps, WebDocument>(WebDocument) { +export class WebBox extends DocAnnotatableComponent<FieldViewProps, WebDocument>(WebDocument, "annotations") { - public static LayoutString(fieldExt?: string) { return FieldView.LayoutString(WebBox, "data", fieldExt); } + public static LayoutString(fieldKey: string = "data") { return FieldView.LayoutString(WebBox, fieldKey); } @observable private collapsed: boolean = true; @observable private url: string = ""; @@ -199,7 +199,7 @@ export class WebBox extends DocAnnotatableComponent<FieldViewProps, WebDocument> <CollectionFreeFormView {...this.props} PanelHeight={this.props.PanelHeight} PanelWidth={this.props.PanelWidth} - fieldExt={"annotations"} + fieldExt={this.fieldExt} focus={this.props.focus} isSelected={this.props.isSelected} isAnnotationOverlay={true} |