Update relation-type-workspace.context-token.ts
This commit is contained in:
@@ -1,11 +1,8 @@
|
||||
import type { UmbRelationTypeWorkspaceContext } from './relation-type-workspace.context.js';
|
||||
import { UmbContextToken } from '@umbraco-cms/backoffice/context-api';
|
||||
import type { UmbSaveableWorkspaceContext } from '@umbraco-cms/backoffice/workspace';
|
||||
|
||||
export const UMB_RELATION_TYPE_WORKSPACE_CONTEXT = new UmbContextToken<
|
||||
UmbSaveableWorkspaceContext,
|
||||
UmbRelationTypeWorkspaceContext
|
||||
>(
|
||||
// TODO: Make readonly workspace context type
|
||||
export const UMB_RELATION_TYPE_WORKSPACE_CONTEXT = new UmbContextToken<any, UmbRelationTypeWorkspaceContext>(
|
||||
'UmbWorkspaceContext',
|
||||
undefined,
|
||||
(context): context is UmbRelationTypeWorkspaceContext => context.getEntityType?.() === 'relation-type',
|
||||
|
||||
Reference in New Issue
Block a user