From b21aeae569c3ebcf2538918a13cf64b9d4c8bade Mon Sep 17 00:00:00 2001 From: anika-ahluwalia Date: Mon, 8 Jun 2020 10:57:59 -0500 Subject: adding ScriptManager and saving --- src/client/documents/Documents.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'src/client/documents/Documents.ts') diff --git a/src/client/documents/Documents.ts b/src/client/documents/Documents.ts index 38fe04534..27fbbc433 100644 --- a/src/client/documents/Documents.ts +++ b/src/client/documents/Documents.ts @@ -262,6 +262,11 @@ export namespace Docs { layout: { view: EmptyBox, dataField: defaultDataKey }, options: { childDropAction: "alias", title: "Global Link Database" } }], + [DocumentType.SCRIPTDB, { + data: new List(), + layout: { view: EmptyBox, dataField: defaultDataKey }, + options: { childDropAction: "alias", title: "Global Script Database" } + }], [DocumentType.SCRIPTING, { layout: { view: ScriptingBox, dataField: defaultDataKey } }], @@ -360,6 +365,13 @@ export namespace Docs { return Prototypes.get(DocumentType.LINKDB); } + /** + * A collection of all scripts in the database + */ + export function MainScriptDocument() { + return Prototypes.get(DocumentType.SCRIPTDB); + } + /** * This is a convenience method that is used to initialize * prototype documents for the first time. -- cgit v1.2.3-70-g09d2