new collection refactor + mongo drop collection fixed

This commit is contained in:
Jan Prochazka
2024-08-22 10:41:29 +02:00
parent 77b42e6a04
commit 7ad8edcdae
6 changed files with 21 additions and 5 deletions

View File

@@ -1,5 +1,6 @@
<script lang="ts">
import FormStyledButton from '../buttons/FormStyledButton.svelte';
import FormArgumentList from '../forms/FormArgumentList.svelte';
import FormProvider from '../forms/FormProvider.svelte';
import FormSubmit from '../forms/FormSubmit.svelte';
@@ -22,7 +23,7 @@
Create {driver?.collectionSingularLabel ?? 'collection/container'}
</svelte:fragment>
<FormTextField label={`New ${driver?.collectionSingularLabel ?? 'collection/container'} name`} name="name" focused />
<FormArgumentList args={driver?.newCollectionFormParams} />
<svelte:fragment slot="footer">
<FormSubmit value="OK" on:click={e => handleSubmit(e.detail)} />