From bf2eb58ec337eb32f4bdcca1db08c43d5a97f15a Mon Sep 17 00:00:00 2001 From: bobzel Date: Mon, 10 Jul 2023 20:30:39 -0400 Subject: fixed acl groups from disappearing when new account is made. --- src/client/documents/DocumentTypes.ts | 1 - src/client/documents/Documents.ts | 18 +----------------- 2 files changed, 1 insertion(+), 18 deletions(-) (limited to 'src/client/documents') diff --git a/src/client/documents/DocumentTypes.ts b/src/client/documents/DocumentTypes.ts index cdc8c275c..6cd8de87a 100644 --- a/src/client/documents/DocumentTypes.ts +++ b/src/client/documents/DocumentTypes.ts @@ -42,7 +42,6 @@ export enum DocumentType { COMPARISON = 'comparison', GROUP = 'group', - LINKDB = 'linkdb', // database of links ??? why do we have this SCRIPTDB = 'scriptdb', // database of scripts GROUPDB = 'groupdb', // database of groups } diff --git a/src/client/documents/Documents.ts b/src/client/documents/Documents.ts index 18e8b5940..f1ba852f9 100644 --- a/src/client/documents/Documents.ts +++ b/src/client/documents/Documents.ts @@ -542,14 +542,6 @@ export namespace Docs { }, }, ], - [ - DocumentType.LINKDB, - { - data: new List(), - layout: { view: EmptyBox, dataField: defaultDataKey }, - options: { title: 'Global Link Database' }, - }, - ], [ DocumentType.SCRIPTDB, { @@ -667,7 +659,6 @@ export namespace Docs { [ DocumentType.GROUPDB, { - data: new List(), layout: { view: EmptyBox, dataField: defaultDataKey }, options: { title: 'Global Group Database' }, }, @@ -722,7 +713,7 @@ export namespace Docs { .filter(type => type !== DocumentType.NONE) .map(type => type + suffix); // fetch the actual prototype documents from the server - const actualProtos = Docs.newAccount ? {} : await DocServer.GetRefFields(prototypeIds); + const actualProtos = await DocServer.GetRefFields(prototypeIds); // update this object to include any default values: DocumentOptions for all prototypes prototypeIds.map(id => { const existing = actualProtos[id] as Doc; @@ -746,13 +737,6 @@ export namespace Docs { return PrototypeMap.get(type)!; } - /** - * A collection of all links in the database. Ideally, this would be a search, but for now all links are cached here. - */ - export function MainLinkDocument() { - return Prototypes.get(DocumentType.LINKDB); - } - /** * A collection of all scripts in the database */ -- cgit v1.2.3-70-g09d2