Skip to content

Commit 2d2bf78

Browse files
committed
add dictionary paths
1 parent 6306685 commit 2d2bf78

File tree

6 files changed

+15
-4
lines changed

6 files changed

+15
-4
lines changed

src/packages/dictionary/collection/views/table/dictionary-table-collection-view.element.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import type { UmbDictionaryCollectionModel } from '../../types.js';
2-
import { UMB_EDIT_DICTIONARY_WORKSPACE_PATH_PATTERN } from '../../../paths.js';
2+
import { UMB_EDIT_DICTIONARY_WORKSPACE_PATH_PATTERN } from '../../../workspace/paths.js';
33
import type { UmbDefaultCollectionContext } from '@umbraco-cms/backoffice/collection';
44
import { UMB_COLLECTION_CONTEXT } from '@umbraco-cms/backoffice/collection';
55
import type { UmbTableColumn, UmbTableConfig, UmbTableItem } from '@umbraco-cms/backoffice/components';
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export * from './paths.js';
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import { UMB_DASHBOARD_PATH_PATTERN } from '@umbraco-cms/backoffice/dashboard';
2+
import { UMB_TRANSLATION_SECTION_PATHNAME } from '@umbraco-cms/backoffice/translation';
3+
4+
export const UMB_DICTIONARY_OVERVIEW_DASHBOARD_PATHNAME = 'dictionary-overview';
5+
6+
export const UMB_DICTIONARY_OVERVIEW_DASHBOARD_PATH = UMB_DASHBOARD_PATH_PATTERN.generateAbsolute({
7+
sectionName: UMB_TRANSLATION_SECTION_PATHNAME,
8+
dashboardPathname: UMB_DICTIONARY_OVERVIEW_DASHBOARD_PATHNAME,
9+
});

src/packages/dictionary/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ export * from './tree/index.js';
33
export * from './modals/dictionary-picker-modal.token.js';
44
export * from './entity.js';
55
export * from './components/index.js';
6-
export * from './paths.js';
6+
export * from './workspace/paths.js';

src/packages/dictionary/workspace/dictionary-workspace-editor.element.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
1+
import { UMB_DICTIONARY_OVERVIEW_DASHBOARD_PATH } from '../dashboard/index.js';
12
import { html, customElement } from '@umbraco-cms/backoffice/external/lit';
23
import { UmbLitElement } from '@umbraco-cms/backoffice/lit-element';
34

45
@customElement('umb-dictionary-workspace-editor')
56
export class UmbDictionaryWorkspaceEditorElement extends UmbLitElement {
67
override render() {
78
return html`
8-
<umb-workspace-editor back-path="section/dictionary/dashboard">
9+
<umb-workspace-editor back-path=${UMB_DICTIONARY_OVERVIEW_DASHBOARD_PATH}>
910
<umb-workspace-header-name-editable slot="header"></umb-workspace-header-name-editable>
1011
</umb-workspace-editor>
1112
`;

src/packages/dictionary/paths.ts renamed to src/packages/dictionary/workspace/paths.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { UMB_DICTIONARY_ENTITY_TYPE } from './entity.js';
1+
import { UMB_DICTIONARY_ENTITY_TYPE } from '../entity.js';
22
import { UmbPathPattern } from '@umbraco-cms/backoffice/router';
33
import { UMB_TRANSLATION_SECTION_PATHNAME } from '@umbraco-cms/backoffice/translation';
44
import { UMB_WORKSPACE_PATH_PATTERN } from '@umbraco-cms/backoffice/workspace';

0 commit comments

Comments
 (0)