Skip to content

Commit 96babd8

Browse files
committed
add alias
1 parent 9267ec7 commit 96babd8

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
export * from './conditions/constants.js';
2+
export * from './menu/constants.js';
23
export * from './repository/constants.js';
34
export * from './search/constants.js';
45
export * from './workspace/constants.js';
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export const UMB_TEMPLATE_MENU_ITEM_ALIAS = 'Umb.MenuItem.Templates';

src/Umbraco.Web.UI.Client/src/packages/templating/templates/menu/manifests.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
import { UMB_TEMPLATE_TREE_ALIAS } from '../tree/index.js';
2+
import { UMB_TEMPLATE_MENU_ITEM_ALIAS } from './constants.js';
23
import { UMB_WORKSPACE_CONDITION_ALIAS } from '@umbraco-cms/backoffice/workspace';
34

45
export const manifests: Array<UmbExtensionManifest> = [
56
{
67
type: 'menuItem',
78
kind: 'tree',
8-
alias: 'Umb.MenuItem.Templates',
9+
alias: UMB_TEMPLATE_MENU_ITEM_ALIAS,
910
name: 'Templates Menu Item',
1011
weight: 40,
1112
meta: {
@@ -20,6 +21,9 @@ export const manifests: Array<UmbExtensionManifest> = [
2021
name: 'Template Menu Structure Workspace Context',
2122
alias: 'Umb.Context.Template.Menu.Structure',
2223
api: () => import('./template-menu-structure.context.js'),
24+
meta: {
25+
menuItemAlias: UMB_TEMPLATE_MENU_ITEM_ALIAS,
26+
},
2327
conditions: [
2428
{
2529
alias: UMB_WORKSPACE_CONDITION_ALIAS,

0 commit comments

Comments
 (0)