clean up
This commit is contained in:
@@ -1,19 +1,11 @@
|
||||
import { UMB_BLOCK_WORKSPACE_CONTEXT } from './block-workspace.context.js';
|
||||
import { UmbTextStyles } from '@umbraco-cms/backoffice/style';
|
||||
import { customElement, css, html, state, property } from '@umbraco-cms/backoffice/external/lit';
|
||||
import { customElement, css, html, property } from '@umbraco-cms/backoffice/external/lit';
|
||||
import { UmbLitElement } from '@umbraco-cms/internal/lit-element';
|
||||
import { UmbRepositoryItemsManager } from '@umbraco-cms/backoffice/repository';
|
||||
import { DOCUMENT_TYPE_ITEM_REPOSITORY_ALIAS, UmbDocumentTypeItemModel } from '@umbraco-cms/backoffice/document-type';
|
||||
|
||||
@customElement('umb-block-workspace-editor')
|
||||
export class UmbBlockWorkspaceEditorElement extends UmbLitElement {
|
||||
//
|
||||
#itemManager = new UmbRepositoryItemsManager<UmbDocumentTypeItemModel>(
|
||||
this,
|
||||
DOCUMENT_TYPE_ITEM_REPOSITORY_ALIAS,
|
||||
(x) => x.id,
|
||||
);
|
||||
|
||||
#workspaceContext?: typeof UMB_BLOCK_WORKSPACE_CONTEXT.TYPE;
|
||||
|
||||
@property({ type: String, attribute: false })
|
||||
|
||||
@@ -43,7 +43,7 @@ export class UmbBlockWorkspaceContext<LayoutDataType extends UmbBlockLayoutBaseM
|
||||
|
||||
constructor(host: UmbControllerHost, workspaceArgs: { manifest: ManifestWorkspace }) {
|
||||
// TODO: We don't need a repo here, so maybe we should not require this of the UmbEditableWorkspaceContextBase
|
||||
super(host, 'Umb.Workspace.Block');
|
||||
super(host, workspaceArgs.manifest.alias);
|
||||
this.#entityType = workspaceArgs.manifest.meta?.entityType;
|
||||
this.workspaceAlias = workspaceArgs.manifest.alias;
|
||||
}
|
||||
|
||||
@@ -96,7 +96,6 @@ export class UmbPropertyContext<ValueType = any> extends UmbBaseController {
|
||||
this._observePropertyValue?.destroy();
|
||||
if (subject) {
|
||||
this._observePropertyValue = this.observe(subject, (value) => {
|
||||
// Note: Do not try to compare new / old value, as it can of any type. We trust the UmbObjectState in doing such.
|
||||
this.#value.next(value);
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user