hide the merge collections import btn if no schema is specified

This commit is contained in:
Gani Georgiev
2024-02-12 12:33:31 +02:00
parent 2662d875b9
commit 6aaf98215d
32 changed files with 94 additions and 92 deletions
@@ -297,15 +297,17 @@
{/if}
</Field>
<Field class="form-field form-field-toggle" let:uniqueId>
<input
type="checkbox"
id={uniqueId}
bind:checked={mergeWithOldCollections}
disabled={!isValid}
/>
<label for={uniqueId}>Merge with the existing collections</label>
</Field>
{#if newCollections.length}
<Field class="form-field form-field-toggle" let:uniqueId>
<input
type="checkbox"
id={uniqueId}
bind:checked={mergeWithOldCollections}
disabled={!isValid}
/>
<label for={uniqueId}>Merge with the existing collections</label>
</Field>
{/if}
{#if false}
<!-- for now hide the explicit delete control and eventually enable/remove based on the users feedback -->