From 5c9de08573274881751ded3cd7d77218b612110f Mon Sep 17 00:00:00 2001 From: bobzel Date: Tue, 12 Sep 2023 21:01:54 -0400 Subject: fixed opening a collection in lightbox --- src/client/views/StyleProvider.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/client/views/StyleProvider.tsx b/src/client/views/StyleProvider.tsx index 0a14b93f7..775ccd067 100644 --- a/src/client/views/StyleProvider.tsx +++ b/src/client/views/StyleProvider.tsx @@ -283,6 +283,7 @@ export function DefaultStyleProvider(doc: Opt, props: Opt { + const dashView = DocumentManager.Instance.getDocumentView(Doc.ActiveDashboard); const showFilterIcon = StrListCast(doc?._childFilters).length || StrListCast(doc?._childFiltersByRanges).length ? 'green' // #18c718bd' //'hasFilter' @@ -317,7 +318,7 @@ export function DefaultStyleProvider(doc: Opt, props: Opt ({ + items={[ ...(dashView ? [dashView]: []), ...(props?.docViewPath?.()??[]), ...(props?.DocumentView?[props?.DocumentView?.()]:[])].map(dv => ({ text: StrCast(dv.rootDoc.title), val: dv as any, style: {color:SettingsManager.userColor, background:SettingsManager.userBackgroundColor}, -- cgit v1.2.3-70-g09d2