diff --git a/packages/builder/src/components/backend/DataTable/TableDataTable.svelte b/packages/builder/src/components/backend/DataTable/TableDataTable.svelte
index e0c653e9d7..2b7cde9201 100644
--- a/packages/builder/src/components/backend/DataTable/TableDataTable.svelte
+++ b/packages/builder/src/components/backend/DataTable/TableDataTable.svelte
@@ -14,13 +14,14 @@
import GridManageAccessButton from "components/backend/DataTable/buttons/grid/GridManageAccessButton.svelte"
import GridRelationshipButton from "components/backend/DataTable/buttons/grid/GridRelationshipButton.svelte"
import GridEditColumnModal from "components/backend/DataTable/modals/grid/GridEditColumnModal.svelte"
+ import GridUsersTableButton from "components/backend/DataTable/modals/grid/GridUsersTableButton.svelte"
const userSchemaOverrides = {
- firstName: { displayName: "First name", disabled: true },
- lastName: { displayName: "Last name", disabled: true },
- email: { displayName: "Email", disabled: true },
- roleId: { displayName: "Role", disabled: true },
- status: { displayName: "Status", disabled: true },
+ firstName: { displayName: "First name" },
+ lastName: { displayName: "Last name" },
+ email: { displayName: "Email" },
+ roleId: { displayName: "Role" },
+ status: { displayName: "Status" },
}
$: id = $tables.selected?._id
@@ -59,22 +60,22 @@
datasource={gridDatasource}
canAddRows={!isUsersTable}
canDeleteRows={!isUsersTable}
+ canEditRows={!isUsersTable}
+ canEditColumns={!isUsersTable}
schemaOverrides={isUsersTable ? userSchemaOverrides : null}
showAvatars={false}
on:updatedatasource={handleGridTableUpdate}
>