aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2022-07-25 11:42:25 -0400
committerbobzel <zzzman@gmail.com>2022-07-25 11:42:25 -0400
commitd2f30910f30cf7016df42d86d452d45c1d408600 (patch)
tree7b18f78a20a8d808dd53c0c85faa4cea9cfb0d4e /src
parent8757b03bfd6f3d33335f8e126163b1daa2376589 (diff)
fixed poroperties panel from overlapping lightboxView. added batches to loading of ids on startup to prevent hang from sending too much data
Diffstat (limited to 'src')
-rw-r--r--src/client/util/CurrentUserUtils.ts9
-rw-r--r--src/client/views/MainView.scss1
2 files changed, 8 insertions, 2 deletions
diff --git a/src/client/util/CurrentUserUtils.ts b/src/client/util/CurrentUserUtils.ts
index bbf2ff3f9..f4357df7f 100644
--- a/src/client/util/CurrentUserUtils.ts
+++ b/src/client/util/CurrentUserUtils.ts
@@ -874,7 +874,14 @@ export class CurrentUserUtils {
Doc.CurrentUserEmail = result.email;
resolvedPorts = JSON.parse(await (await fetch("/resolvedPorts")).text());
DocServer.init(window.location.protocol, window.location.hostname, resolvedPorts.socket, result.email);
- result.cacheDocumentIds && (await DocServer.GetRefFields(result.cacheDocumentIds.split(";")));
+ if (result.cacheDocumentIds)
+ {
+ const ids = result.cacheDocumentIds.split(";");
+ const batch = 10000;
+ for (let i = 0; i < ids.length; i = Math.min(ids.length, i+batch)) {
+ await DocServer.GetRefFields(ids.slice(i, i+batch));
+ }
+ }
return result;
} else {
throw new Error("There should be a user! Why does Dash think there isn't one?");
diff --git a/src/client/views/MainView.scss b/src/client/views/MainView.scss
index ad87fb874..da79d2992 100644
--- a/src/client/views/MainView.scss
+++ b/src/client/views/MainView.scss
@@ -133,7 +133,6 @@
position: absolute;
right: 0;
top: 0;
- z-index: 3000;
}
.mainView-propertiesDragger {