Navigate to "Projects" Page Should Display Only Message When No Projects Are Assigned.
This commit is contained in:
parent
c4fd04dbac
commit
e1e4ba2b54
@ -316,6 +316,11 @@ const ProjectList = () => {
|
||||
)}
|
||||
|
||||
{listView ? (
|
||||
currentItems.length === 0 ? (
|
||||
<div className="text-center text-muted mt-4">
|
||||
No projects found.
|
||||
</div>
|
||||
) : (
|
||||
<div className="card cursor-pointer">
|
||||
<div className="card-body p-2">
|
||||
<div className="table-responsive text-nowrap py-2 ">
|
||||
@ -366,9 +371,7 @@ const ProjectList = () => {
|
||||
checked={selectedStatuses.includes(id)}
|
||||
onChange={() => handleStatusChange(id)}
|
||||
/>
|
||||
<label className="form-check-label">
|
||||
{label}
|
||||
</label>
|
||||
<label className="form-check-label">{label}</label>
|
||||
</div>
|
||||
</li>
|
||||
))}
|
||||
@ -376,8 +379,7 @@ const ProjectList = () => {
|
||||
</div>
|
||||
</th>
|
||||
<th
|
||||
className={`mx-2 ${
|
||||
HasManageProject ? "d-sm-table-cell" : "d-none"
|
||||
className={`mx-2 ${HasManageProject ? "d-sm-table-cell" : "d-none"
|
||||
}`}
|
||||
>
|
||||
Action
|
||||
@ -385,26 +387,19 @@ const ProjectList = () => {
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody className="table-border-bottom-0 overflow-auto">
|
||||
{currentItems.length === 0 ? (
|
||||
<tr>
|
||||
<td colSpan="12" className="text-center py-4">
|
||||
No projects found
|
||||
</td>
|
||||
</tr>
|
||||
) : (
|
||||
currentItems.map((project) => (
|
||||
{currentItems.map((project) => (
|
||||
<ProjectListView
|
||||
key={project.id}
|
||||
projectData={project}
|
||||
recall={sortingProject}
|
||||
/>
|
||||
))
|
||||
)}
|
||||
))}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>{" "}
|
||||
</div>{" "}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
)
|
||||
) : (
|
||||
<div className="row">
|
||||
{currentItems.map((project) => (
|
||||
@ -417,6 +412,7 @@ const ProjectList = () => {
|
||||
</div>
|
||||
)}
|
||||
|
||||
|
||||
{!loading && totalPages > 1 && (
|
||||
<nav>
|
||||
<ul className="pagination pagination-sm justify-content-end py-2">
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user