diff options
author | bobzel <zzzman@gmail.com> | 2020-09-14 12:23:50 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2020-09-14 12:23:50 -0400 |
commit | 3893d4913852bd92b2a71880bb7c7cf39aba0c2c (patch) | |
tree | eb96997cd189d9794d5197064d3ca106cfca4cb7 /src/client/util/CurrentUserUtils.ts | |
parent | bf5718d25e372689b97965eafc80dd7cbdd2963c (diff) |
fixes to sidebar menus to simplify them for novices. fixed clearAll menu items
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 3dc16b864..17f1146b1 100644 --- a/src/client/util/CurrentUserUtils.ts +++ b/src/client/util/CurrentUserUtils.ts @@ -779,7 +779,7 @@ export class CurrentUserUtils { treeViewTruncateTitleWidth: 150, treeViewPreventOpen: false, lockedPosition: true, boxShadow: "0 0", dontRegisterChildViews: true, targetDropAction: "same", system: true })); - const clearAll = ScriptField.MakeScript(`self.data = new List([])`); + const clearAll = ScriptField.MakeScript(`getProto(self).data = new List([])`); (doc.myRecentlyClosedDocs as any as Doc).contextMenuScripts = new List<ScriptField>([clearAll!]); (doc.myRecentlyClosedDocs as any as Doc).contextMenuLabels = new List<string>(["Clear All"]); } @@ -794,7 +794,7 @@ export class CurrentUserUtils { treeViewTruncateTitleWidth: 150, treeViewPreventOpen: false, lockedPosition: true, boxShadow: "0 0", dontRegisterChildViews: true, targetDropAction: "same", system: true })); - const clearAll = ScriptField.MakeScript(`self.data = new List([])`); + const clearAll = ScriptField.MakeScript(`getProto(self).data = new List([])`); (doc.myFilter as any as Doc).contextMenuScripts = new List<ScriptField>([clearAll!]); (doc.myFilter as any as Doc).contextMenuLabels = new List<string>(["Clear All"]); } |