build fixes

This commit is contained in:
2023-10-08 13:46:05 +03:00
parent 9c90f51711
commit 129e3af471
2 changed files with 77 additions and 43 deletions
+34 -30
View File
@@ -46,24 +46,24 @@
<tr>
<th>
<input
on:change|preventDefault={toggleAll}
indeterminate={selected.length > 0 &&
on:change|preventDefault={toggleAll}
indeterminate={selected.length > 0 &&
selected.length < records.length}
checked={selected.length == records.length}
class="form-check-input"
type="checkbox"
checked={selected.length == records.length}
class="form-check-input"
type="checkbox"
/>
</th>
{#each visibleColumns as field}
<th
class="field-ui-{field.ui}"
class:is-sort={"-" + field.name == sort ||
class="field-ui-{field.ui}"
class:is-sort={"-" + field.name == sort ||
field.name == sort}
scope="col"
title={field.help}
data-bs-toggle="tooltip"
data-bs-placement="top">{field.label}</th
scope="col"
title={field.help}
data-bs-toggle="tooltip"
data-bs-placement="top">{field.label}</th
>
{/each}
{#each systemFields.filter(c => schema.visible.includes(c.name)) as sysField}
@@ -76,50 +76,54 @@
<tr>
<td class="title-td">
<div
class="title-td-contents d-inline-flex justify-content-between w-100 align-items-center"
class="title-td-contents d-inline-flex justify-content-between w-100 align-items-center"
>
<div class="d-flex align-items-center ">
<div class="form-check">
<input
on:change={(e) =>
on:change={(e) =>
selectRecord(e, record)}
class="form-check-input "
type="checkbox"
checked={selected.find(
class="form-check-input "
type="checkbox"
checked={selected.find(
(r) => r.id === record.id
)}
value={record}
value={record}
/>
</div>
<a
class="me-2 text-decoration-none text-dark fs-6"
href="{channel.lucentUrl}/records/{record.id}"
target={inModal ? "_blank" : "_self"}
class="me-2 text-decoration-none text-dark fs-6"
href="{channel.lucentUrl}/records/{record.id}"
target={inModal ? "_blank" : "_self"}
title={previewTitle(channel.schemas, record, graph)}
data-bs-toggle="tooltip" data-bs-placement="left"
>
{previewTitle(channel.schemas, record, graph)}
</a>
</div>
<div>
<Avatar
name={usernameById(
name={usernameById(
users,
record._sys.updatedBy
)}
side={24}
side={24}
/>
</div>
</div>
</td>
<RecordRow
{record}
{graph}
{schema}
{visibleColumns}
{sort}
{systemFields}
{inModal}
{users}
{record}
{graph}
{schema}
{visibleColumns}
{sort}
{systemFields}
{inModal}
{users}
/>
</tr>
{/each}