aboutsummaryrefslogtreecommitdiff
path: root/src/client/util/CurrentUserUtils.ts
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2022-06-08 13:46:23 -0400
committerbobzel <zzzman@gmail.com>2022-06-08 13:46:23 -0400
commitb316f7676c5b2acd9e5bd1202f1cdf33a81a6f6a (patch)
tree33ac706de29412450e73a10c514fc85996e6329f /src/client/util/CurrentUserUtils.ts
parent5157f0c500b01a635c373cc661a2588ef7506d79 (diff)
tweaked doc decorations to be visible when clicking on items in headerBar. restored dashboard snapshotting.
Diffstat (limited to 'src/client/util/CurrentUserUtils.ts')
-rw-r--r--src/client/util/CurrentUserUtils.ts4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/client/util/CurrentUserUtils.ts b/src/client/util/CurrentUserUtils.ts
index 885679b64..a325122bc 100644
--- a/src/client/util/CurrentUserUtils.ts
+++ b/src/client/util/CurrentUserUtils.ts
@@ -1202,6 +1202,10 @@ export class CurrentUserUtils {
docView.dataDoc.thumb = img;
});
}
+
+ const copy = await CollectionDockingView.Copy(CurrentUserUtils.ActiveDashboard);
+ Doc.AddDocToList(Cast(userDoc.myDashboards, Doc, null), "data", copy);
+ CurrentUserUtils.openDashboard(userDoc, copy);
}
public static createNewDashboard = async (userDoc: Doc, id?: string) => {