allow label for dashboard to overwrite name

This commit is contained in:
Mads Rasmussen
2022-08-17 21:03:55 +02:00
parent f4a5b402e7
commit c17daed68e
3 changed files with 3 additions and 1 deletions

View File

@@ -129,7 +129,7 @@ export class UmbSectionDashboards extends UmbContextConsumerMixin(LitElement) {
(dashboard: UmbExtensionManifestDashboard) => html`
<uui-tab
href="${`/section/${this._currentSectionPathname}/dashboard/${dashboard.meta.pathname}`}"
label=${dashboard.name}
label=${dashboard.meta.label || dashboard.name}
?active="${dashboard.meta.pathname === this._currentDashboardPathname}"></uui-tab>
`
)}

View File

@@ -51,6 +51,7 @@ export type UmbManifestPropertyActionMeta = {
// Dashboard:
export type UmbManifestDashboardMeta = {
sections: Array<string>;
label?: string;
pathname: string; // TODO: how to we want to support pretty urls?
weight: number;
};

View File

@@ -77,6 +77,7 @@ export const internalManifests: Array<UmbExtensionManifestCore> = [
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,