From 5a3f8d8ca8ecd8c3ba7f79c12b417c663f6abee2 Mon Sep 17 00:00:00 2001 From: Jacob Overgaard <752371+iOvergaard@users.noreply.github.com> Date: Wed, 28 Feb 2024 13:29:15 +0100 Subject: [PATCH] extend from MetaEntityAction --- .../workspace-action-menu-item.model.ts | 19 +++++-------------- 1 file changed, 5 insertions(+), 14 deletions(-) diff --git a/src/Umbraco.Web.UI.Client/src/packages/core/extension-registry/models/workspace-action-menu-item.model.ts b/src/Umbraco.Web.UI.Client/src/packages/core/extension-registry/models/workspace-action-menu-item.model.ts index 9e489242a1..3354034a2f 100644 --- a/src/Umbraco.Web.UI.Client/src/packages/core/extension-registry/models/workspace-action-menu-item.model.ts +++ b/src/Umbraco.Web.UI.Client/src/packages/core/extension-registry/models/workspace-action-menu-item.model.ts @@ -1,27 +1,18 @@ import type { ConditionTypes } from '../conditions/types.js'; -import type { UUIInterfaceColor, UUIInterfaceLook } from '@umbraco-cms/backoffice/external/uui'; -import type { ManifestElement, ManifestWithDynamicConditions } from '@umbraco-cms/backoffice/extension-api'; +import type { MetaEntityAction } from './entity-action.model.js'; +import type { ManifestElementAndApi, ManifestWithDynamicConditions } from '@umbraco-cms/backoffice/extension-api'; +import type { UmbWorkspaceAction } from '@umbraco-cms/backoffice/workspace'; export interface ManifestWorkspaceActionMenuItem - extends ManifestElement, + extends ManifestElementAndApi, ManifestWithDynamicConditions { type: 'workspaceActionMenuItem'; meta: MetaWorkspaceActionMenuItem; } -export interface MetaWorkspaceActionMenuItem { +export interface MetaWorkspaceActionMenuItem extends MetaEntityAction { /** * Define which workspace actions this menu item should be shown for. */ workspaceActionAliases: string[]; - - /** - * The color of the button. Defaults to the workspace action button color. - */ - buttonColor?: UUIInterfaceColor; - - /** - * The look of the button. Defaults to the workspace action button look. - */ - buttonLook?: UUIInterfaceLook; }