From dfc4161d6d5e1d64d1754aaaec1d4f9e7943cbea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niels=20Lyngs=C3=B8?= Date: Thu, 16 Nov 2023 13:36:29 +0100 Subject: [PATCH] correct JSDocs --- .../workspace-editor.element.ts | 20 +++++-------------- 1 file changed, 5 insertions(+), 15 deletions(-) diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/workspace/workspace-editor/workspace-editor.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/workspace/workspace-editor/workspace-editor.element.ts index 120a143d81..0590328ffe 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/workspace/workspace-editor/workspace-editor.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/workspace/workspace-editor/workspace-editor.element.ts @@ -1,4 +1,4 @@ -import { UmbTextStyles } from "@umbraco-cms/backoffice/style"; +import { UmbTextStyles } from '@umbraco-cms/backoffice/style'; import { css, html, nothing, customElement, property, state, repeat } from '@umbraco-cms/backoffice/external/lit'; import type { UmbRoute, UmbRouterSlotInitEvent, UmbRouterSlotChangeEvent } from '@umbraco-cms/backoffice/router'; import { @@ -21,10 +21,10 @@ import { componentHasManifestProperty } from '@umbraco-cms/backoffice/utils'; * @slot actions - Slot for workspace footer actions * @slot default - slot for main content * @export - * @class UmbWorkspaceLayout + * @class UmbWorkspaceEditor * @extends {UmbLitElement} */ -// TODO: This element has a bug in the tabs. After the url changes - for example a new entity/file is chosen in the tree and loaded to the workspace the links in the tabs still point to the previous url and therefore views do not change correctly +// TODO: This element has a bug in the tabs. After the url changes - for example a new entity/file is chosen in the tree and loaded to the workspace the links in the tabs still point to the previous url and therefore views do not change correctly @customElement('umb-workspace-editor') export class UmbWorkspaceEditorElement extends UmbLitElement { @property() @@ -36,16 +36,6 @@ export class UmbWorkspaceEditorElement extends UmbLitElement { @property({ type: Boolean }) public enforceNoFooter = false; - // TODO: Revisit if we can remove the alias from the workspace-editor. Its not used for anything, as the context now takes care of it. - /** - * Alias of the workspace. Currently not used for anything. - * @public - * @type {string | undefined} - * @attr - */ - @property() - public alias?: string; - @state() private _workspaceViews: Array = []; @@ -68,7 +58,7 @@ export class UmbWorkspaceEditorElement extends UmbLitElement { (workspaceViews) => { this._workspaceViews = workspaceViews.map((view) => view.manifest); this._createRoutes(); - } + }, ); } @@ -142,7 +132,7 @@ export class UmbWorkspaceEditorElement extends UmbLitElement { ${view.meta.label || view.name} - ` + `, )} `