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} />