Refresh data UI tables when creating a row
This commit is contained in:
parent
bf46b41890
commit
8b9b6dd4e2
|
@ -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}
|
||||
/>
|
||||
|
|
|
@ -12,5 +12,5 @@
|
|||
{title}
|
||||
</ActionButton>
|
||||
<Modal bind:this={modal}>
|
||||
<svelte:component this={modalContentComponent} />
|
||||
<svelte:component this={modalContentComponent} on:updaterows />
|
||||
</Modal>
|
||||
|
|
Loading…
Reference in New Issue