added style classes for footer
This commit is contained in:
parent
3f9afaef86
commit
9a9e5d7fbd
2
public/assets/vendor/css/core.css
vendored
2
public/assets/vendor/css/core.css
vendored
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -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}
|
||||||
|
@ -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"
|
||||||
|
@ -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>
|
||||||
|
@ -414,7 +414,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");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user