allow label for dashboard to overwrite name
This commit is contained in:
@@ -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>
|
||||
`
|
||||
)}
|
||||
|
||||
@@ -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;
|
||||
};
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user