Adding Pending in Loading in Job list.
This commit is contained in:
parent
98e9a8b625
commit
fead3a37a6
@ -16,7 +16,7 @@ import ConfirmModal from "../common/ConfirmModal";
|
||||
|
||||
const JobList = ({ isArchive }) => {
|
||||
const { setSelectedJob, setManageJob } = useServiceProjectJobContext();
|
||||
const { mutate: UpdateJob } = useUpdateServiceProjectJob(() => {
|
||||
const { mutate: UpdateJob,isPending } = useUpdateServiceProjectJob(() => {
|
||||
});
|
||||
const { projectId } = useParams();
|
||||
const { data, isLoading, isError, error } = useServiceProjectJobs(
|
||||
@ -139,10 +139,10 @@ const JobList = ({ isArchive }) => {
|
||||
}
|
||||
onSubmit={handleArchive}
|
||||
onClose={() => setIsArchiveModalOpen(false)}
|
||||
loading={false}
|
||||
loading={isPending}
|
||||
/>
|
||||
|
||||
)}
|
||||
|
||||
|
||||
<div className="dataTables_wrapper dt-bootstrap5 no-footer table-responsive">
|
||||
<table
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user