Compare commits
5 Commits
f78a2c3cbb
...
develop
| Author | SHA1 | Date | |
|---|---|---|---|
| 2f91d31816 | |||
| 40437079c9 | |||
| 605114e0e4 | |||
| 0ce0b608a4 | |||
| 457bef64c4 |
@@ -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"
|
||||
@@ -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(() => {
|
||||
|
||||
@@ -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} />
|
||||
</>
|
||||
);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user