diff --git a/src/app/[orgId]/settings/resources/[niceId]/proxy/page.tsx b/src/app/[orgId]/settings/resources/[niceId]/proxy/page.tsx index 8621c749..db578bf2 100644 --- a/src/app/[orgId]/settings/resources/[niceId]/proxy/page.tsx +++ b/src/app/[orgId]/settings/resources/[niceId]/proxy/page.tsx @@ -1420,21 +1420,25 @@ export default function ReverseProxyTargets(props: { .map((headerGroup) => ( {headerGroup.headers.map( - (header) => ( - - {header.isPlaceholder - ? null - : flexRender( - header - .column - .columnDef - .header, - header.getContext() - )} - - ) + (header) => { + const isActionsColumn = header.column.id === "actions"; + return ( + + {header.isPlaceholder + ? null + : flexRender( + header + .column + .columnDef + .header, + header.getContext() + )} + + ); + } )} ))} @@ -1447,21 +1451,25 @@ export default function ReverseProxyTargets(props: { {row .getVisibleCells() - .map((cell) => ( - - {flexRender( - cell - .column - .columnDef - .cell, - cell.getContext() - )} - - ))} + .map((cell) => { + const isActionsColumn = cell.column.id === "actions"; + return ( + + {flexRender( + cell + .column + .columnDef + .cell, + cell.getContext() + )} + + ); + })} )) ) : ( diff --git a/src/app/[orgId]/settings/resources/[niceId]/rules/page.tsx b/src/app/[orgId]/settings/resources/[niceId]/rules/page.tsx index 0e8c1873..592424e0 100644 --- a/src/app/[orgId]/settings/resources/[niceId]/rules/page.tsx +++ b/src/app/[orgId]/settings/resources/[niceId]/rules/page.tsx @@ -832,7 +832,7 @@ export default function ResourceRules(props: { /> {t('ruleSubmit')} @@ -844,17 +844,23 @@ export default function ResourceRules(props: { {table.getHeaderGroups().map((headerGroup) => ( - {headerGroup.headers.map((header) => ( - - {header.isPlaceholder - ? null - : flexRender( - header.column.columnDef - .header, - header.getContext() - )} - - ))} + {headerGroup.headers.map((header) => { + const isActionsColumn = header.column.id === "actions"; + return ( + + {header.isPlaceholder + ? null + : flexRender( + header.column.columnDef + .header, + header.getContext() + )} + + ); + })} ))} @@ -862,14 +868,20 @@ export default function ResourceRules(props: { {table.getRowModel().rows?.length ? ( table.getRowModel().rows.map((row) => ( - {row.getVisibleCells().map((cell) => ( - - {flexRender( - cell.column.columnDef.cell, - cell.getContext() - )} - - ))} + {row.getVisibleCells().map((cell) => { + const isActionsColumn = cell.column.id === "actions"; + return ( + + {flexRender( + cell.column.columnDef.cell, + cell.getContext() + )} + + ); + })} )) ) : ( diff --git a/src/app/[orgId]/settings/resources/create/page.tsx b/src/app/[orgId]/settings/resources/create/page.tsx index 1169cb6c..a098117f 100644 --- a/src/app/[orgId]/settings/resources/create/page.tsx +++ b/src/app/[orgId]/settings/resources/create/page.tsx @@ -1608,23 +1608,27 @@ export default function Page() { {headerGroup.headers.map( ( header - ) => ( - - {header.isPlaceholder - ? null - : flexRender( - header - .column - .columnDef - .header, - header.getContext() - )} - - ) + ) => { + const isActionsColumn = header.column.id === "actions"; + return ( + + {header.isPlaceholder + ? null + : flexRender( + header + .column + .columnDef + .header, + header.getContext() + )} + + ); + } )} ) @@ -1647,21 +1651,25 @@ export default function Page() { .map( ( cell - ) => ( - - {flexRender( - cell - .column - .columnDef - .cell, - cell.getContext() - )} - - ) + ) => { + const isActionsColumn = cell.column.id === "actions"; + return ( + + {flexRender( + cell + .column + .columnDef + .cell, + cell.getContext() + )} + + ); + } )} ) diff --git a/src/components/ClientsTable.tsx b/src/components/ClientsTable.tsx index 418488d6..96f9430d 100644 --- a/src/components/ClientsTable.tsx +++ b/src/components/ClientsTable.tsx @@ -552,7 +552,7 @@ export default function ClientsTable({ - + {t("columns") || "Columns"} diff --git a/src/components/ResourcesTable.tsx b/src/components/ResourcesTable.tsx index 994c710a..ef16f728 100644 --- a/src/components/ResourcesTable.tsx +++ b/src/components/ResourcesTable.tsx @@ -769,7 +769,7 @@ export default function ResourcesTable({ - + {t("columns") || "Columns"} diff --git a/src/components/ui/data-table.tsx b/src/components/ui/data-table.tsx index 5d12985c..36ec5105 100644 --- a/src/components/ui/data-table.tsx +++ b/src/components/ui/data-table.tsx @@ -417,7 +417,7 @@ export function DataTable({ - + {t("columns") || "Columns"}