Fixes to collaborator and documents (#2394)

Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
Andrey Sobolev
2022-11-23 01:13:26 +07:00
committed by GitHub
parent dcaa0ea9b0
commit afe44eb034
25 changed files with 243 additions and 124 deletions
@@ -333,7 +333,7 @@
{/if}
{#each fieldEditors as collection}
{#if collection.editor}
<div class="mt-6 clear-mins">
<div class="mt-6">
<Component
is={collection.editor}
props={{
@@ -61,6 +61,7 @@
let loading = 0
let objects: Doc[] = []
let objectsRecieved = false
const refs: HTMLElement[] = []
$: refs.length = objects.length
@@ -91,6 +92,7 @@
query,
(result) => {
objects = result
objectsRecieved = true
if (sortingFunction !== undefined) {
const sf = sortingFunction
objects.sort((a, b) => -1 * sortOrder * sf(a, b))
@@ -230,7 +232,7 @@
</tr>
</thead>
{/if}
{#if objects.length}
{#if objects.length || objectsRecieved}
<tbody>
{#each objects as object, row (object._id)}
<tr