Merge pull request #2399 from umbraco/v15/hotfix/dictionary-collection-action-wrong-path
V15: Hotfix: Create dictionary collection action wrong path
This commit is contained in:
@@ -1,6 +1,12 @@
|
||||
import { UMB_DICTIONARY_ROOT_ENTITY_TYPE } from '../../entity.js';
|
||||
import { UMB_CREATE_DICTIONARY_WORKSPACE_PATH_PATTERN } from '../../workspace/index.js';
|
||||
import { UMB_COLLECTION_ALIAS_CONDITION } from '@umbraco-cms/backoffice/collection';
|
||||
|
||||
const createPath = UMB_CREATE_DICTIONARY_WORKSPACE_PATH_PATTERN.generateAbsolute({
|
||||
parentEntityType: UMB_DICTIONARY_ROOT_ENTITY_TYPE,
|
||||
parentUnique: null,
|
||||
});
|
||||
|
||||
export const manifests: Array<UmbExtensionManifest> = [
|
||||
{
|
||||
type: 'collectionAction',
|
||||
@@ -10,7 +16,7 @@ export const manifests: Array<UmbExtensionManifest> = [
|
||||
weight: 200,
|
||||
meta: {
|
||||
label: '#general_create',
|
||||
href: `section/dictionary/workspace/dictionary/create/parent/${UMB_DICTIONARY_ROOT_ENTITY_TYPE}/null`,
|
||||
href: createPath,
|
||||
},
|
||||
conditions: [
|
||||
{
|
||||
|
||||
@@ -14,7 +14,7 @@ export const manifests: Array<UmbExtensionManifest> = [
|
||||
name: 'Translation Sidebar Menu',
|
||||
weight: 100,
|
||||
meta: {
|
||||
label: '#sections_translation',
|
||||
label: '#general_dictionary', // We are using dictionary here on purpose until dictionary has its own menu item.
|
||||
menu: UMB_TRANSLATION_MENU_ALIAS,
|
||||
entityType: 'dictionary-root', // hard-coded on purpose to avoid circular dependency. We need another way to add actions to a menu kind.
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user