Skip to content

Commit 629635e

Browse files
authored
observable for detecting if split view is active (#19394)
* observable for detecting if split view is active * declare splitView manager on content detail workspace * remove declaration as it was a double
1 parent 876d229 commit 629635e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Umbraco.Web.UI.Client/src/packages/core/workspace/controllers/workspace-split-view-manager.controller.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ export class UmbWorkspaceSplitViewManager {
1616
(a, b) => (a.index || 0) - (b.index || 0),
1717
);
1818
public readonly activeVariantsInfo = this.#activeVariantsInfo.asObservable();
19+
public readonly splitViewActive = this.#activeVariantsInfo.asObservablePart((x) => x.length > 1);
1920

2021
private _routeBase?: string;
2122
public getWorkspaceRoute(): string | undefined {

0 commit comments

Comments
 (0)