1
0
Fork 0
mirror of synced 2024-06-01 10:09:48 +12:00
budibase/packages/builder/src/components/backend/DataTable/buttons/grid/GridRelationshipButton.svelte
2023-04-20 08:17:07 +01:00

14 lines
313 B
Svelte

<script>
import ExistingRelationshipButton from "../ExistingRelationshipButton.svelte"
import { getContext } from "svelte"
const { table, rows } = getContext("grid")
</script>
{#if $table}
<ExistingRelationshipButton
table={$table}
on:updatecolumns={() => rows.actions.refreshData()}
/>
{/if}