From c17daed68e11b3ad325b40968c5921f17c7c1aa5 Mon Sep 17 00:00:00 2001 From: Mads Rasmussen Date: Wed, 17 Aug 2022 21:03:55 +0200 Subject: [PATCH] allow label for dashboard to overwrite name --- .../backoffice/sections/shared/section-dashboards.element.ts | 2 +- .../src/core/extension/extension.registry.ts | 1 + src/Umbraco.Web.UI.Client/src/temp-internal-manifests.ts | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Umbraco.Web.UI.Client/src/backoffice/sections/shared/section-dashboards.element.ts b/src/Umbraco.Web.UI.Client/src/backoffice/sections/shared/section-dashboards.element.ts index 196e54c6bb..18a2cc5a22 100644 --- a/src/Umbraco.Web.UI.Client/src/backoffice/sections/shared/section-dashboards.element.ts +++ b/src/Umbraco.Web.UI.Client/src/backoffice/sections/shared/section-dashboards.element.ts @@ -129,7 +129,7 @@ export class UmbSectionDashboards extends UmbContextConsumerMixin(LitElement) { (dashboard: UmbExtensionManifestDashboard) => html` ` )} diff --git a/src/Umbraco.Web.UI.Client/src/core/extension/extension.registry.ts b/src/Umbraco.Web.UI.Client/src/core/extension/extension.registry.ts index ec71384302..815853d89f 100644 --- a/src/Umbraco.Web.UI.Client/src/core/extension/extension.registry.ts +++ b/src/Umbraco.Web.UI.Client/src/core/extension/extension.registry.ts @@ -51,6 +51,7 @@ export type UmbManifestPropertyActionMeta = { // Dashboard: export type UmbManifestDashboardMeta = { sections: Array; + label?: string; pathname: string; // TODO: how to we want to support pretty urls? weight: number; }; diff --git a/src/Umbraco.Web.UI.Client/src/temp-internal-manifests.ts b/src/Umbraco.Web.UI.Client/src/temp-internal-manifests.ts index 673fc222fc..3b51ef0934 100644 --- a/src/Umbraco.Web.UI.Client/src/temp-internal-manifests.ts +++ b/src/Umbraco.Web.UI.Client/src/temp-internal-manifests.ts @@ -77,6 +77,7 @@ export const internalManifests: Array = [ elementName: 'umb-dashboard-settings-about', js: () => import('./backoffice/dashboards/settings-about/dashboard-settings-about.element'), meta: { + label: 'About', sections: ['Umb.Section.Settings'], pathname: 'about', // TODO: how to we want to support pretty urls? weight: 10,