5 Commits

Author SHA1 Message Date
2f91d31816 Merge tag 'v1.9.2' into develop
v1.9.2
2026-07-14 15:04:16 +03:30
40437079c9 Merge branch 'release/v1.9.2' 2026-07-14 15:04:06 +03:30
605114e0e4 v1.9.2 2026-07-14 15:03:30 +03:30
0ce0b608a4 Merge pull request 'bugfix/delete_violations' (#14) from bugfix/delete_violations into develop
Reviewed-on: #14
2026-07-14 11:26:11 +00:00
457bef64c4 add deleteviolations 2026-07-14 14:55:30 +03:30
3 changed files with 3 additions and 3 deletions

View File

@@ -1,5 +1,5 @@
HOST="rms.witel.ir"
HOST_RMTO="rms.rmto.ir"
NEXT_PUBLIC_VERSION="1.9.1"
NEXT_PUBLIC_VERSION="1.9.2"
NEXT_PUBLIC_API_URL="https://rms.witel.ir"
NEXT_PUBLIC_MAPTILE_ENDPOINT="https://rmsmap.rmto.ir/141map"

View File

@@ -8,7 +8,7 @@ const DeleteContent = ({ rowId, mutate, setOpenDeleteDialog }) => {
const requestServer = useRequest({ notificationSuccess: true });
const handleClick = () => {
setSubmitting(true);
requestServer(`${DELETE_VIOLATION}/${rowId}`, "post", {
requestServer(`${DELETE_VIOLATION}/${rowId}`, "delete", {
hasSidebarUpdate: true,
})
.then(() => {

View File

@@ -8,7 +8,7 @@ const RowActions = ({ row, mutate }) => {
<>
{!row.original.mileage && <EditViolation row={row} mutate={mutate} rowId={row.getValue("id")} />}
{/*{canEdit && <CreateWithoutProcess row={row} mutate={mutate} />}*/}
<DeleteViolation />
<DeleteViolation rowId={row.getValue("id")} mutate={mutate} />
</>
);
};