clean up as we dont use this anymore

This commit is contained in:
Niels Lyngsø
2023-01-11 11:19:04 +01:00
parent e99c07cc86
commit d2e032dd06

View File

@@ -53,7 +53,6 @@ export class UmbWorkspaceDataTypeElement extends UmbLitElement {
constructor() {
super();
this.addEventListener('property-value-change', this._onPropertyValueChange);
this.provideContext('umbWorkspaceContext', this._workspaceContext);
this.observe(this._workspaceContext.data.pipe(distinctUntilChanged()), (dataType) => {
if (dataType && dataType.name !== this._dataTypeName) {
@@ -62,11 +61,6 @@ export class UmbWorkspaceDataTypeElement extends UmbLitElement {
});
}
private _onPropertyValueChange = (e: Event) => {
const target = e.composedPath()[0] as any;
this._workspaceContext.setPropertyValue(target?.alias, target?.value);
};
// TODO. find a way where we don't have to do this for all Workspaces.
private _handleInput(event: UUIInputEvent) {
if (event instanceof UUIInputEvent) {