From 48b8963f061980a420f95d7f97f7acee2c2d4f8c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niels=20Lyngs=C3=B8?= Date: Wed, 22 Feb 2023 14:32:28 +0100 Subject: [PATCH] clean up --- .../documents/workspace/document-workspace.context.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/Umbraco.Web.UI.Client/src/backoffice/documents/documents/workspace/document-workspace.context.ts b/src/Umbraco.Web.UI.Client/src/backoffice/documents/documents/workspace/document-workspace.context.ts index 61e10fbcbf..2a1d7e72da 100644 --- a/src/Umbraco.Web.UI.Client/src/backoffice/documents/documents/workspace/document-workspace.context.ts +++ b/src/Umbraco.Web.UI.Client/src/backoffice/documents/documents/workspace/document-workspace.context.ts @@ -53,8 +53,6 @@ export class UmbDocumentWorkspaceContext #documentTypes = new ArrayState([], (x) => x.key); documentTypes = this.#documentTypes.asObservable(); - mainDocumentType = this.#documentTypes.asObservable(); - // Notice the DocumentTypePropertyTypeContainerModel is equivalent to PropertyTypeContainerViewModelBaseModel, making it easy to generalize. #containers = new ArrayState([], (x) => x.key); @@ -195,6 +193,8 @@ export class UmbDocumentWorkspaceContext ); } + // TODO: Structure methods: + hasPropertyStructuresOf(containerKey: string | null) { return this.#documentTypes.getObservablePart((docTypes) => { return ( @@ -221,8 +221,6 @@ export class UmbDocumentWorkspaceContext }); } - // TODO: Check what of these methods I ended actually using: - rootContainers(containerType: 'Group' | 'Tab') { return this.#containers.getObservablePart((data) => { return data.filter((x) => x.parentKey === null && x.type === containerType);