Skip to content

Commit

Permalink
Add coordinate columns
Browse files Browse the repository at this point in the history
  • Loading branch information
MiraGeowerkstatt committed Aug 21, 2024
1 parent 576b9a4 commit 0b44298
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion src/client/src/pages/overview/boreholeTable/boreholeTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -110,10 +110,26 @@ export const BoreholeTable: FC<BoreholeTableProps> = ({
headerName: t("reference_elevation"),
flex: 1,
},
{
field: "location_x",
valueGetter: (value, row) => {
return `${Math.round(row.location_x * 100) / 100 || "-"}`;
},
headerName: t("location_x"),
flex: 1,
},
{
field: "location_y",
valueGetter: (value, row) => {
return `${Math.round(row.location_y * 100) / 100 || "-"}`;
},
headerName: t("location_y"),
flex: 1,
},
{
field: "lock",
headerName: "",
width: 70,
width: 20,
renderCell: value => {
if (value.row.lock) {
return (
Expand Down

0 comments on commit 0b44298

Please sign in to comment.