Skip to content

Commit

Permalink
Merge pull request #2399 from umbraco/v15/hotfix/dictionary-collectio…
Browse files Browse the repository at this point in the history
…n-action-wrong-path

V15: Hotfix: Create dictionary collection action wrong path
  • Loading branch information
iOvergaard authored Oct 2, 2024
2 parents 7c30d05 + 5eb35b1 commit 9455934
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 7 additions & 1 deletion src/packages/dictionary/collection/action/manifests.ts
Original file line number Diff line number Diff line change
@@ -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',
Expand All @@ -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: [
{
Expand Down
2 changes: 1 addition & 1 deletion src/packages/translation/menu/manifests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
},
Expand Down

0 comments on commit 9455934

Please sign in to comment.