From f1c35da25e1e076c142bfd435398e4cae47bab07 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niels=20Lyngs=C3=B8?= Date: Fri, 4 Aug 2023 10:10:08 +0200 Subject: [PATCH] fix workspace entity actions dropdown --- .../core/entity-action/entity-action-list.element.ts | 2 +- .../workspace-action-menu.element.ts | 10 ++++++---- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/entity-action/entity-action-list.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/entity-action/entity-action-list.element.ts index 7d81034192..1e5f7753b4 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/entity-action/entity-action-list.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/entity-action/entity-action-list.element.ts @@ -5,7 +5,6 @@ import { UmbLitElement } from '@umbraco-cms/internal/lit-element'; @customElement('umb-entity-action-list') export class UmbEntityActionListElement extends UmbLitElement { @property({ type: String, attribute: 'entity-type' }) - private _entityType: string = ''; public get entityType(): string { return this._entityType; } @@ -16,6 +15,7 @@ export class UmbEntityActionListElement extends UmbLitElement { this._filter = (extension: ManifestEntityAction) => extension.meta.entityTypes.includes(this.entityType); this.requestUpdate('_filter', oldValue); } + private _entityType: string = ''; @state() _filter?: (extension: ManifestEntityAction) => boolean; diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/workspace/workspace-action-menu/workspace-action-menu.element.ts b/src/Umbraco.Web.UI.Client/src/packages/core/workspace/workspace-action-menu/workspace-action-menu.element.ts index 949ddec975..26189040c1 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/workspace/workspace-action-menu/workspace-action-menu.element.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/workspace/workspace-action-menu/workspace-action-menu.element.ts @@ -49,15 +49,17 @@ export class UmbWorkspaceActionMenuElement extends UmbLitElement { } #renderActionsMenu() { - return this._entityId + return this._entityId && this._entityType ? html`
- + +