This commit is contained in:
Niels Lyngsø
2023-06-08 22:33:34 +02:00
parent 1b9baeba29
commit 4b1c281bbd

View File

@@ -16,26 +16,12 @@ export class UmbDocumentWorkspaceSplitViewElement extends UmbLitElement {
constructor() {
super();
console.log('##SPLIT VIEW');
this.consumeContext(UMB_ENTITY_WORKSPACE_CONTEXT, (context) => {
this._workspaceContext = context as UmbDocumentWorkspaceContext;
this._observeActiveVariantInfo();
});
}
connectedCallback(): void {
super.connectedCallback();
console.log('##SPLIT VIEW CONNECTED');
}
disconnectedCallback(): void {
super.disconnectedCallback();
console.log('##SPLIT VIEW DISCONNECTED!');
}
private _observeActiveVariantInfo() {
if (!this._workspaceContext) return;
this.observe(