Added Document Managment feature #388
@ -19,6 +19,7 @@ import { isPending } from "@reduxjs/toolkit";
|
|||||||
import { useHasUserPermission } from "../../hooks/useHasUserPermission";
|
import { useHasUserPermission } from "../../hooks/useHasUserPermission";
|
||||||
import { useProfile } from "../../hooks/useProfile";
|
import { useProfile } from "../../hooks/useProfile";
|
||||||
import { useParams } from "react-router-dom";
|
import { useParams } from "react-router-dom";
|
||||||
|
import showToast from "../../services/toastService";
|
||||||
|
|
||||||
const DocumentsList = ({
|
const DocumentsList = ({
|
||||||
Document_Entity,
|
Document_Entity,
|
||||||
@ -105,6 +106,7 @@ const DocumentsList = ({
|
|||||||
{
|
{
|
||||||
onSettled: () => {
|
onSettled: () => {
|
||||||
setRestoringIds((prev) => prev.filter((id) => id !== docId));
|
setRestoringIds((prev) => prev.filter((id) => id !== docId));
|
||||||
|
showToast("Document restored successfully","success")
|
||||||
refetch();
|
refetch();
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user