store unsaved record changes in local storage

This commit is contained in:
Gani Georgiev
2023-04-17 12:43:48 +03:00
parent 6127350e91
commit 5eb54c7a3d
3 changed files with 122 additions and 29 deletions

View File

@@ -84,7 +84,7 @@
{:else if field.type === "relation"}
{@const relations = CommonHelper.toArray(rawValue)}
{@const expanded = CommonHelper.toArray(record.expand[field.name])}
{@const relLimit = short ? 20 : 200}
{@const relLimit = short ? 20 : 500}
<div class="inline-flex">
{#if expanded.length}
{#each expanded.slice(0, relLimit) as item, i (i + item)}
@@ -103,7 +103,7 @@
</div>
{:else if field.type === "file"}
{@const files = CommonHelper.toArray(rawValue)}
{@const filesLimit = short ? 10 : 200}
{@const filesLimit = short ? 10 : 500}
<div class="inline-flex">
{#each files.slice(0, filesLimit) as filename, i (i + filename)}
<RecordFileThumb {record} {filename} size="sm" />