correct split view updates
This commit is contained in:
@@ -75,7 +75,6 @@ export class UmbWorkspaceEditorElement extends UmbLitElement {
|
||||
private _activePath?: string;
|
||||
|
||||
private _observeWorkspaceViews() {
|
||||
// TODO: Make collection as a kind of workspaceEditorView.
|
||||
this.observe(
|
||||
umbExtensionsRegistry
|
||||
.extensionsOfTypes<ManifestWorkspaceEditorView>(['workspaceEditorView', 'workspaceViewCollection'])
|
||||
@@ -85,7 +84,8 @@ export class UmbWorkspaceEditorElement extends UmbLitElement {
|
||||
(workspaceViews) => {
|
||||
this._workspaceViews = workspaceViews;
|
||||
this._createRoutes();
|
||||
}
|
||||
},
|
||||
'_observeWorkspaceViews'
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@@ -52,7 +52,7 @@ export class UmbDocumentWorkspaceSplitViewElement extends UmbLitElement {
|
||||
? html`<div id="splitViews">
|
||||
${repeat(
|
||||
this._variants,
|
||||
(view) => view.index,
|
||||
(view) => view.index + '_' + this._variants!.length,
|
||||
(view) => html`
|
||||
<umb-workspace-variant
|
||||
alias="Umb.Workspace.Document"
|
||||
|
||||
Reference in New Issue
Block a user