* Refactor section conditions into subfolders Split section condition logic into 'section-alias' and 'section-user-permission' subfolders, each with their own constants, manifests, and types. Updated imports and manifest aggregation to use the new structure for improved modularity and maintainability. * use const * fix build * Refactor section alias condition to use constant Replaces hardcoded 'Umb.Condition.SectionAlias' strings with the UMB_SECTION_ALIAS_CONDITION_ALIAS constant across all manifests and related files. This improves maintainability and consistency by centralizing the section alias condition reference.
22 lines
630 B
TypeScript
22 lines
630 B
TypeScript
import { UMB_SECTION_ALIAS_CONDITION_ALIAS } from '@umbraco-cms/backoffice/section';
|
|
import { UMB_TRANSLATION_SECTION_ALIAS } from '@umbraco-cms/backoffice/translation';
|
|
|
|
export const manifests: Array<UmbExtensionManifest> = [
|
|
{
|
|
type: 'dashboard',
|
|
alias: 'Umb.Dashboard.Dictionary.Overview',
|
|
name: 'Dictionary Overview Dashboard',
|
|
element: () => import('./dictionary-overview-dashboard.element.js'),
|
|
meta: {
|
|
label: '#dictionaryItem_overviewTitle',
|
|
pathname: 'dictionary-overview',
|
|
},
|
|
conditions: [
|
|
{
|
|
alias: UMB_SECTION_ALIAS_CONDITION_ALIAS,
|
|
match: UMB_TRANSLATION_SECTION_ALIAS,
|
|
},
|
|
],
|
|
},
|
|
];
|