Merge pull request #2157 from bjarnef/feature/language-workspace-alias
Use constant for language workspace alias
This commit is contained in:
@@ -0,0 +1 @@
|
||||
export const UMB_LANGUAGE_WORKSPACE_ALIAS = 'Umb.Workspace.Language';
|
||||
@@ -1,6 +1,7 @@
|
||||
import { UmbLanguageDetailRepository } from '../../repository/index.js';
|
||||
import type { UmbLanguageDetailModel } from '../../types.js';
|
||||
import { UmbLanguageWorkspaceEditorElement } from './language-workspace-editor.element.js';
|
||||
import { UMB_LANGUAGE_WORKSPACE_ALIAS } from './constants.js';
|
||||
import {
|
||||
type UmbSubmittableWorkspaceContext,
|
||||
UmbSubmittableWorkspaceContextBase,
|
||||
@@ -27,7 +28,7 @@ export class UmbLanguageWorkspaceContext
|
||||
readonly validationErrors = this.#validationErrors.asObservable();
|
||||
|
||||
constructor(host: UmbControllerHost) {
|
||||
super(host, 'Umb.Workspace.Language');
|
||||
super(host, UMB_LANGUAGE_WORKSPACE_ALIAS);
|
||||
|
||||
this.routes.setRoutes([
|
||||
{
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
import { UMB_LANGUAGE_WORKSPACE_ALIAS } from './constants.js';
|
||||
import { UmbSubmitWorkspaceAction } from '@umbraco-cms/backoffice/workspace';
|
||||
import type {
|
||||
ManifestWorkspaces,
|
||||
@@ -9,7 +10,7 @@ import type {
|
||||
const workspace: ManifestWorkspaces = {
|
||||
type: 'workspace',
|
||||
kind: 'routable',
|
||||
alias: 'Umb.Workspace.Language',
|
||||
alias: UMB_LANGUAGE_WORKSPACE_ALIAS,
|
||||
name: 'Language Workspace',
|
||||
api: () => import('./language-workspace.context.js'),
|
||||
meta: {
|
||||
|
||||
Reference in New Issue
Block a user