diff options
author | bobzel <zzzman@gmail.com> | 2021-03-17 18:32:51 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2021-03-17 18:32:51 -0400 |
commit | 6f4f0ffb9f4ab816cf6055c62afc6f79b8e4961f (patch) | |
tree | b1f238076751b2b2e969373403e9be8da29ccd05 /src/client/util/CurrentUserUtils.ts | |
parent | 73dc79ddc41b56e2f36a5b2e442fe9c71648b118 (diff) |
fix Doc.MakeClone to deal wth links correctly again. fixed dashboard snapshot to either alias top-level documents, or clone everything.
Diffstat (limited to 'src/client/util/CurrentUserUtils.ts')
-rw-r--r-- | src/client/util/CurrentUserUtils.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/util/CurrentUserUtils.ts b/src/client/util/CurrentUserUtils.ts index 2a84171cb..e601d33f7 100644 --- a/src/client/util/CurrentUserUtils.ts +++ b/src/client/util/CurrentUserUtils.ts @@ -1156,8 +1156,8 @@ export class CurrentUserUtils { input.click(); } - public static snapshotDashboard = (userDoc: Doc) => { - const copy = CollectionDockingView.Copy(CurrentUserUtils.ActiveDashboard); + public static async snapshotDashboard(userDoc: Doc) { + const copy = await CollectionDockingView.Copy(CurrentUserUtils.ActiveDashboard); Doc.AddDocToList(Cast(userDoc.myDashboards, Doc, null), "data", copy); CurrentUserUtils.openDashboard(userDoc, copy); } |