PR comments.
This commit is contained in:
parent
b2b51a03f8
commit
a3a6ee5656
|
@ -27,7 +27,7 @@
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
const afterSave = async ({ action }) => {
|
const afterSave = ({ action }) => {
|
||||||
notifications.success(`Relationship ${action} successfully`)
|
notifications.success(`Relationship ${action} successfully`)
|
||||||
dispatch("updatecolumns")
|
dispatch("updatecolumns")
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,13 +2,7 @@
|
||||||
import { getContext } from "svelte"
|
import { getContext } from "svelte"
|
||||||
import CreateEditColumn from "components/backend/DataTable/modals/CreateEditColumn.svelte"
|
import CreateEditColumn from "components/backend/DataTable/modals/CreateEditColumn.svelte"
|
||||||
|
|
||||||
const { datasource, rows } = getContext("grid")
|
const { datasource } = getContext("grid")
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<CreateEditColumn
|
<CreateEditColumn on:updatecolumns={datasource.actions.refreshDefinition} />
|
||||||
on:updatecolumns={async () => {
|
|
||||||
await datasource.actions.refreshDefinition()
|
|
||||||
// Need to find a better way to handle formula columns than just always refreshing
|
|
||||||
rows.actions.refreshData()
|
|
||||||
}}
|
|
||||||
/>
|
|
||||||
|
|
Loading…
Reference in New Issue