Skip to content
This repository was archived by the owner on Nov 6, 2025. It is now read-only.

Commit c7652f3

Browse files
Merge pull request #2157 from bjarnef/feature/language-workspace-alias
Use constant for language workspace alias
2 parents d8b72cf + e02bcbf commit c7652f3

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export const UMB_LANGUAGE_WORKSPACE_ALIAS = 'Umb.Workspace.Language';

src/packages/language/workspace/language/language-workspace.context.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { UmbLanguageDetailRepository } from '../../repository/index.js';
22
import type { UmbLanguageDetailModel } from '../../types.js';
33
import { UmbLanguageWorkspaceEditorElement } from './language-workspace-editor.element.js';
4+
import { UMB_LANGUAGE_WORKSPACE_ALIAS } from './constants.js';
45
import {
56
type UmbSubmittableWorkspaceContext,
67
UmbSubmittableWorkspaceContextBase,
@@ -27,7 +28,7 @@ export class UmbLanguageWorkspaceContext
2728
readonly validationErrors = this.#validationErrors.asObservable();
2829

2930
constructor(host: UmbControllerHost) {
30-
super(host, 'Umb.Workspace.Language');
31+
super(host, UMB_LANGUAGE_WORKSPACE_ALIAS);
3132

3233
this.routes.setRoutes([
3334
{

src/packages/language/workspace/language/manifests.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { UMB_LANGUAGE_WORKSPACE_ALIAS } from './constants.js';
12
import { UmbSubmitWorkspaceAction } from '@umbraco-cms/backoffice/workspace';
23
import type {
34
ManifestWorkspaces,
@@ -9,7 +10,7 @@ import type {
910
const workspace: ManifestWorkspaces = {
1011
type: 'workspace',
1112
kind: 'routable',
12-
alias: 'Umb.Workspace.Language',
13+
alias: UMB_LANGUAGE_WORKSPACE_ALIAS,
1314
name: 'Language Workspace',
1415
api: () => import('./language-workspace.context.js'),
1516
meta: {

0 commit comments

Comments
 (0)