1
0
Fork 0
mirror of synced 2024-07-04 22:11:23 +12:00

PR comments.

This commit is contained in:
mike12345567 2023-12-12 15:02:40 +00:00
parent b2b51a03f8
commit a3a6ee5656
2 changed files with 3 additions and 9 deletions

View file

@ -27,7 +27,7 @@
})
}
const afterSave = async ({ action }) => {
const afterSave = ({ action }) => {
notifications.success(`Relationship ${action} successfully`)
dispatch("updatecolumns")
}

View file

@ -2,13 +2,7 @@
import { getContext } from "svelte"
import CreateEditColumn from "components/backend/DataTable/modals/CreateEditColumn.svelte"
const { datasource, rows } = getContext("grid")
const { datasource } = getContext("grid")
</script>
<CreateEditColumn
on:updatecolumns={async () => {
await datasource.actions.refreshDefinition()
// Need to find a better way to handle formula columns than just always refreshing
rows.actions.refreshData()
}}
/>
<CreateEditColumn on:updatecolumns={datasource.actions.refreshDefinition} />