From f623d0cbf78ef9cb14c9bbaf25c481262d9def84 Mon Sep 17 00:00:00 2001 From: geireann Date: Tue, 18 Jul 2023 09:28:13 -0400 Subject: test cleanup --- src/client/util/CurrentUserUtils.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src') diff --git a/src/client/util/CurrentUserUtils.ts b/src/client/util/CurrentUserUtils.ts index 76dd3c356..284ceb545 100644 --- a/src/client/util/CurrentUserUtils.ts +++ b/src/client/util/CurrentUserUtils.ts @@ -784,8 +784,6 @@ export class CurrentUserUtils { // When the user views one of these documents, it will be added to the sharing documents 'viewed' list field // The sharing document also stores the user's color value which helps distinguish shared documents from personal documents static setupSharedDocs(doc: Doc, sharingDocumentId: string) { - const addToDashboards = ScriptField.MakeScript(`addToDashboards(self)`); - const dashboardFilter = ScriptField.MakeFunction(`doc._type_collection === '${CollectionViewType.Docking}'`, { doc: Doc.name }); const dblClkScript = "{scriptContext.openLevel(documentView); addDocToList(scriptContext.props.treeView.props.Document, 'viewed', documentView.rootDoc);}"; const sharedScripts = { treeViewChildDoubleClick: dblClkScript, } @@ -806,6 +804,7 @@ export class CurrentUserUtils { DocUtils.AssignDocField(doc, "mySharedDocs", opts => Docs.Create.TreeDocument([], opts, sharingDocumentId + "layout", sharingDocumentId), sharedDocOpts, undefined, sharedScripts); if (!DocCast(doc.mySharedDocs).data_dashboards) DocCast(doc.mySharedDocs).data_dashboards = new List(); + console.log(doc.mySharedDocs); } /// Import option on the left side button panel -- cgit v1.2.3-70-g09d2 From 1e2277597fc890f929b3155868a400ba991bcfe0 Mon Sep 17 00:00:00 2001 From: geireann Date: Tue, 18 Jul 2023 09:36:23 -0400 Subject: fixed shared dashboards field location --- src/client/util/CurrentUserUtils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/client/util/CurrentUserUtils.ts b/src/client/util/CurrentUserUtils.ts index 284ceb545..ef1726fab 100644 --- a/src/client/util/CurrentUserUtils.ts +++ b/src/client/util/CurrentUserUtils.ts @@ -803,7 +803,7 @@ export class CurrentUserUtils { }; DocUtils.AssignDocField(doc, "mySharedDocs", opts => Docs.Create.TreeDocument([], opts, sharingDocumentId + "layout", sharingDocumentId), sharedDocOpts, undefined, sharedScripts); - if (!DocCast(doc.mySharedDocs).data_dashboards) DocCast(doc.mySharedDocs).data_dashboards = new List(); + if (!Doc.GetProto(DocCast(doc.mySharedDocs)).data_dashboards) Doc.GetProto(DocCast(doc.mySharedDocs)).data_dashboards = new List(); console.log(doc.mySharedDocs); } -- cgit v1.2.3-70-g09d2 From 80eac769ad0ef56f0d050aae96ffb38a5aa5974a Mon Sep 17 00:00:00 2001 From: bobzel Date: Tue, 18 Jul 2023 09:49:32 -0400 Subject: set default color for context menu items to black. --- src/client/views/ContextMenu.scss | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/client/views/ContextMenu.scss b/src/client/views/ContextMenu.scss index cbe14060a..1361d99fc 100644 --- a/src/client/views/ContextMenu.scss +++ b/src/client/views/ContextMenu.scss @@ -7,6 +7,7 @@ box-shadow: 0px 3px 4px rgba(0, 0, 0, 30%); flex-direction: column; background: whitesmoke; + color: black; border-radius: 3px; } -- cgit v1.2.3-70-g09d2 From 4b6ab0f2e0fd5253056dabafe5e8eb52b023305a Mon Sep 17 00:00:00 2001 From: bobzel Date: Tue, 18 Jul 2023 10:06:36 -0400 Subject: made text color readable for shared dashboards. fixed inking to not crash --- src/client/views/DashboardView.tsx | 4 ++-- src/client/views/GestureOverlay.tsx | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-) (limited to 'src') diff --git a/src/client/views/DashboardView.tsx b/src/client/views/DashboardView.tsx index cf746bbb3..1a5781df0 100644 --- a/src/client/views/DashboardView.tsx +++ b/src/client/views/DashboardView.tsx @@ -182,7 +182,7 @@ export class DashboardView extends React.Component {