mirror of
https://github.com/hcengineering/platform.git
synced 2026-09-27 20:14:57 +02:00
Fixes to collaborator and documents (#2394)
Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user