1
0
Fork 0
mirror of synced 2024-09-30 17:18:14 +13:00

Refresh data UI tables when creating a row

This commit is contained in:
Andrew Kingston 2021-09-29 12:29:26 +01:00
parent f9c8cd8506
commit 1c93ae509e
2 changed files with 3 additions and 1 deletions

View file

@ -50,6 +50,7 @@
})
}
// Fetch data whenever schema changes
const onUpdateColumns = () => {
search.update({
schema,
@ -78,6 +79,7 @@
{#if schema && Object.keys(schema).length > 0}
{#if !isUsersTable}
<CreateRowButton
on:updaterows={search.refresh}
title={"Create row"}
modalContentComponent={CreateEditRow}
/>

View file

@ -12,5 +12,5 @@
{title}
</ActionButton>
<Modal bind:this={modal}>
<svelte:component this={modalContentComponent} />
<svelte:component this={modalContentComponent} on:updaterows />
</Modal>