File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed
dictionary/collection/action Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change 1
1
import { UMB_DICTIONARY_ROOT_ENTITY_TYPE } from '../../entity.js' ;
2
+ import { UMB_CREATE_DICTIONARY_WORKSPACE_PATH_PATTERN } from '../../workspace/index.js' ;
2
3
import { UMB_COLLECTION_ALIAS_CONDITION } from '@umbraco-cms/backoffice/collection' ;
3
4
5
+ const createPath = UMB_CREATE_DICTIONARY_WORKSPACE_PATH_PATTERN . generateAbsolute ( {
6
+ parentEntityType : UMB_DICTIONARY_ROOT_ENTITY_TYPE ,
7
+ parentUnique : null ,
8
+ } ) ;
9
+
4
10
export const manifests : Array < UmbExtensionManifest > = [
5
11
{
6
12
type : 'collectionAction' ,
@@ -10,7 +16,7 @@ export const manifests: Array<UmbExtensionManifest> = [
10
16
weight : 200 ,
11
17
meta : {
12
18
label : '#general_create' ,
13
- href : `section/dictionary/workspace/dictionary/create/parent/ ${ UMB_DICTIONARY_ROOT_ENTITY_TYPE } /null` ,
19
+ href : createPath ,
14
20
} ,
15
21
conditions : [
16
22
{
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ export const manifests: Array<UmbExtensionManifest> = [
14
14
name : 'Translation Sidebar Menu' ,
15
15
weight : 100 ,
16
16
meta : {
17
- label : '#sections_translation' ,
17
+ label : '#general_dictionary' , // We are using dictionary here on purpose until dictionary has its own menu item.
18
18
menu : UMB_TRANSLATION_MENU_ALIAS ,
19
19
entityType : 'dictionary-root' , // hard-coded on purpose to avoid circular dependency. We need another way to add actions to a menu kind.
20
20
} ,
You can’t perform that action at this time.
0 commit comments