Assigned Task Should Be Visible to Normal User Without Showing Assign Button.
This commit is contained in:
parent
f7ea1aa60a
commit
bb32c3925d
@ -40,27 +40,29 @@ const InfraPlanning = () =>
|
||||
|
||||
},[reloadedData])
|
||||
|
||||
// Show only "No Result Found" message if no data is present
|
||||
if (!project_deatilsLoader && projects_Details?.buildings?.length === 0) {
|
||||
return <div className="text-center mt-4 ">No Result Found</div>;
|
||||
}
|
||||
|
||||
// Optionally show loading indicator
|
||||
if (project_deatilsLoader) {
|
||||
return <div className="text-center mt-4 ">Loading...</div>;
|
||||
}
|
||||
|
||||
return (
|
||||
<div className="col-md-12 col-lg-12 col-xl-12 order-0 mb-4">
|
||||
<div className="card">
|
||||
<div className="card-body" style={{ padding: "0.5rem" }}>
|
||||
{ManageInfra ? (
|
||||
<div className="align-items-center">
|
||||
<div className="row ">
|
||||
{isLoading && ( <p>Loading...</p> )}
|
||||
{( !isLoading && projectInfra?.length === 0 ) && ( <p>No Result Found</p> )}
|
||||
{(!isLoading && projectInfra?.length > 0) && (<InfraTable buildings={projectInfra} projectId={selectedProject}/>)}
|
||||
<div className="card">
|
||||
<div className="card-body" style={{ padding: "0.5rem" }}>
|
||||
<div className="row">
|
||||
<InfraTable
|
||||
buildings={projects_Details?.buildings}
|
||||
projectId={projects_Details?.id}
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
) : (
|
||||
<div className="text-center">
|
||||
<i className="fa-solid fa-triangle-exclamation fs-5"></i>
|
||||
<p>Access Denied: You don't have permission to perform this action. !</p>
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user