4 Commits

3 changed files with 3 additions and 3 deletions

View File

@@ -1,5 +1,5 @@
HOST="rms.witel.ir" HOST="rms.witel.ir"
HOST_RMTO="rms.rmto.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_API_URL="https://rms.witel.ir"
NEXT_PUBLIC_MAPTILE_ENDPOINT="https://rmsmap.rmto.ir/141map" 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 requestServer = useRequest({ notificationSuccess: true });
const handleClick = () => { const handleClick = () => {
setSubmitting(true); setSubmitting(true);
requestServer(`${DELETE_VIOLATION}/${rowId}`, "post", { requestServer(`${DELETE_VIOLATION}/${rowId}`, "delete", {
hasSidebarUpdate: true, hasSidebarUpdate: true,
}) })
.then(() => { .then(() => {

View File

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