Refetch tables on many to many
This commit is contained in:
parent
036af2d32f
commit
6cb664060e
|
@ -182,6 +182,12 @@
|
||||||
indexes,
|
indexes,
|
||||||
})
|
})
|
||||||
dispatch("updatecolumns")
|
dispatch("updatecolumns")
|
||||||
|
if (
|
||||||
|
saveColumn.type === LINK_TYPE &&
|
||||||
|
saveColumn.relationshipType === RelationshipTypes.MANY_TO_MANY
|
||||||
|
) {
|
||||||
|
dispatch("updatetables")
|
||||||
|
}
|
||||||
if (originalName) {
|
if (originalName) {
|
||||||
notifications.success("Column updated successfully")
|
notifications.success("Column updated successfully")
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
<script>
|
<script>
|
||||||
import { getContext, onMount } from "svelte"
|
import { getContext, onMount } from "svelte"
|
||||||
import { Modal } from "@budibase/bbui"
|
import { Modal } from "@budibase/bbui"
|
||||||
|
import { tables } from "stores/backend"
|
||||||
import CreateEditColumn from "components/backend/DataTable/modals/CreateEditColumn.svelte"
|
import CreateEditColumn from "components/backend/DataTable/modals/CreateEditColumn.svelte"
|
||||||
|
|
||||||
const { rows, subscribe } = getContext("grid")
|
const { rows, subscribe } = getContext("grid")
|
||||||
|
@ -11,5 +12,10 @@
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<Modal bind:this={modal}>
|
<Modal bind:this={modal}>
|
||||||
<CreateEditColumn on:updatecolumns={rows.actions.refreshTableDefinition} />
|
<CreateEditColumn
|
||||||
|
on:updatecolumns={rows.actions.refreshTableDefinition}
|
||||||
|
on:updatetables={() => {
|
||||||
|
tables.fetch()
|
||||||
|
}}
|
||||||
|
/>
|
||||||
</Modal>
|
</Modal>
|
||||||
|
|
Loading…
Reference in New Issue