Skip to content

Commit

Permalink
revert
Browse files Browse the repository at this point in the history
  • Loading branch information
madsrasmussen committed Sep 18, 2024
1 parent 565df41 commit 717054c
Showing 1 changed file with 2 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,13 @@ import type { UmbWorkspaceContext } from '../../workspace-context.interface.js';
import type { UmbControllerHost } from '@umbraco-cms/backoffice/controller-api';
import { UmbContextBase } from '@umbraco-cms/backoffice/class-api';
import type { ManifestWorkspace } from '@umbraco-cms/backoffice/workspace';
import { UmbEntityContext } from '@umbraco-cms/backoffice/entity';

export abstract class UmbDefaultWorkspaceContext
extends UmbContextBase<UmbDefaultWorkspaceContext>
implements UmbWorkspaceContext
{
public workspaceAlias!: string;

#entityType!: string;
#unique: string | null = null;

#entityContext = new UmbEntityContext(this);

constructor(host: UmbControllerHost) {
super(host, UMB_WORKSPACE_CONTEXT.toString());
Expand All @@ -23,13 +18,10 @@ export abstract class UmbDefaultWorkspaceContext
set manifest(manifest: ManifestWorkspace) {
this.workspaceAlias = manifest.alias;
this.#entityType = manifest.meta.entityType;

this.#entityContext.setEntityType(this.#entityType);
this.#entityContext.setUnique(this.#unique);
}

getUnique(): string | null {
return this.#unique;
getUnique(): string | undefined {
return undefined;
}

getEntityType(): string {
Expand Down

0 comments on commit 717054c

Please sign in to comment.