File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
src/packages/dictionary/collection/action Expand file tree Collapse file tree 1 file changed +7
-1
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
{
You can’t perform that action at this time.
0 commit comments