aboutsummaryrefslogtreecommitdiff
path: root/src/client/documents
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/documents')
-rw-r--r--src/client/documents/DocumentTypes.ts2
-rw-r--r--src/client/documents/Documents.ts7
2 files changed, 5 insertions, 4 deletions
diff --git a/src/client/documents/DocumentTypes.ts b/src/client/documents/DocumentTypes.ts
index e02382661..adc61aa80 100644
--- a/src/client/documents/DocumentTypes.ts
+++ b/src/client/documents/DocumentTypes.ts
@@ -28,5 +28,5 @@ export enum DocumentType {
PDFANNO = "pdfanno",
INK = "ink",
DOCUMENT = "document",
- SEARCH = "search",
+ SEARCHBOX = "searchbox",
} \ No newline at end of file
diff --git a/src/client/documents/Documents.ts b/src/client/documents/Documents.ts
index 144554cbc..86e459561 100644
--- a/src/client/documents/Documents.ts
+++ b/src/client/documents/Documents.ts
@@ -46,6 +46,7 @@ import { DocumentType } from "./DocumentTypes";
import { RecommendationsBox } from "../views/RecommendationsBox";
import { SearchDocBox } from "../views/SearchDocBox";
+
//import { PresBox } from "../views/nodes/PresBox";
//import { PresField } from "../../new_fields/PresField";
import { LinkFollowBox } from "../views/linking/LinkFollowBox";
@@ -258,7 +259,7 @@ export namespace Docs {
layout: { view: InkingStroke, dataField: data },
options: { backgroundColor: "transparent" }
}],
- [DocumentType.SEARCH, {
+ [DocumentType.SEARCHBOX, {
layout: { view: SearchDocBox },
options: { width: 200, height: 200 },
}]
@@ -594,8 +595,8 @@ export namespace Docs {
return InstanceFromProto(Prototypes.get(DocumentType.RECOMMENDATION), new List<Doc>(data), options);
}
- export function SearchDocument(options: DocumentOptions = {}) {
- return InstanceFromProto(Prototypes.get(DocumentType.SEARCH), new List<Doc>(), options);
+ export function SearchDocument(documents: Array<Doc>, options: DocumentOptions = {}) {
+ return InstanceFromProto(Prototypes.get(DocumentType.SEARCHBOX), new List(documents), options);
}
export type DocConfig = {