added style classes for footer

This commit is contained in:
pramod.mahajan 2025-09-27 11:21:41 +05:30
parent 265c74f079
commit ca8a41bb63
5 changed files with 23 additions and 23 deletions

View File

@ -18613,7 +18613,7 @@ li:not(:first-child) .dropdown-item,
min-height: 70vh !important; min-height: 70vh !important;
} }
.modal-min-h-{ .modal-min-h{
min-height: 60vh !important; min-height: 60vh !important;
} }

View File

@ -66,7 +66,7 @@ const TeamAssignToProject = ({ closeModal }) => {
</div> </div>
</div> </div>
<div className="row modal-min-h" > <div >
<TeamEmployeeList <TeamEmployeeList
organizationId={selectedOrg} organizationId={selectedOrg}
searchTerm={searchText} searchTerm={searchText}

View File

@ -118,7 +118,7 @@ const TeamEmployeeList = ({ organizationId, searchTerm, closeModal }) => {
status: true, status: true,
})); }));
handleAssignEmployee({ payload }); handleAssignEmployee({ payload,actionType:"assign"} );
setEmployees((prev) => setEmployees((prev) =>
prev.map((emp) => ({ prev.map((emp) => ({
@ -154,9 +154,9 @@ if (employees.length === 0) {
return ( return (
<div className="h-auto"> <div className=" position-relative">
<table className="table"> <table className="table" style={{ maxHeight: "80px", overflowY: "auto" }}>
<thead> <thead className=" position-sticky top-0">
<tr> <tr>
<th>Employee</th> <th>Employee</th>
<th>Service</th> <th>Service</th>
@ -231,7 +231,7 @@ if (employees.length === 0) {
))} ))}
</tbody> </tbody>
</table> </table>
<div className="d-flex justify-content-end mt-3 gap-5"> <div className="position-sticky bottom-0 bg-white d-flex justify-content-end gap-3 z-25 ">
<button <button
type="button" type="button"
className="btn btn-sm btn-label-secondary" className="btn btn-sm btn-label-secondary"

View File

@ -64,27 +64,25 @@ const Teams = () => {
isError, isError,
} = useManageProjectAllocation({ } = useManageProjectAllocation({
onSuccessCallback: () => { onSuccessCallback: () => {
setRemovingEmployeeId(null); setSelectedEmployee(null);
setDeleteEmplyee(null);
closeDeleteModal();
}, },
onErrorCallback: () => { onErrorCallback: () => {
closeDeleteModal(); setSelectedEmployee(null);
}, },
}); });
const handleDelete = (employee) => { const handleDelete = (employee) => {
let payload = [ let payload = [
{ {
employeeId: employee.employeeId, employeeId: employee?.employeeId,
jobRoleId: employee.jobRoleId, jobRoleId: employee?.jobRoleId,
projectId: selectedProject, projectId: selectedProject,
serviceId: selectedService, serviceId: employee?.serviceId,
status: false, status: false,
}, },
]; ];
submitAllocations({ payload: payload }); submitAllocations({ payload: payload, actionType: "remove" });
}; };
const getJobRole = (jobRoleId) => { const getJobRole = (jobRoleId) => {
if (loading) return "Loading..."; if (loading) return "Loading...";
@ -228,7 +226,7 @@ const Teams = () => {
</div> </div>
</div> </div>
<div className="table-responsive text-nowrap"> <div className="table-responsive text-nowrap modal-min-h">
{employeeLodaing && <p>Loading..</p>} {employeeLodaing && <p>Loading..</p>}
{projectEmployees && projectEmployees.length > 0 && ( {projectEmployees && projectEmployees.length > 0 && (
<table className="table "> <table className="table ">
@ -317,13 +315,15 @@ const Teams = () => {
</tbody> </tbody>
</table> </table>
)} )}
{/* {!employeeLodaing && filteredEmployees.length === 0 && ( {!employeeLodaing && filteredEmployees.length === 0 && (
<div className="text-center text-muted py-3"> <div className="text-center text-muted py-3 d-flex justify-content-center align-items-center py-12">
{activeEmployee <p>
? "No active employees assigned to the project" {!activeEmployee
: "No inactive employees assigned to the project"} ? "No active employees assigned to the project"
: "No inactive employees assigned to the project"}
</p>
</div> </div>
)} */} )}
</div> </div>
</div> </div>
</div> </div>

View File

@ -422,7 +422,7 @@ export const useManageProjectAllocation = ({
queryKey: ["empListByProjectAllocated"], queryKey: ["empListByProjectAllocated"],
}); });
queryClient.removeQueries({ queryKey: ["projectEmployees"] }); queryClient.removeQueries({ queryKey: ["projectEmployees"] });
if (variables?.added) { if (variables.actionType === "assign") {
showToast("Employee Assigned Successfully", "success"); showToast("Employee Assigned Successfully", "success");
} else { } else {
showToast("Removed Employee Successfully", "success"); showToast("Removed Employee Successfully", "success");