Skip to content

Commit

Permalink
fix(core): do not render application list if all are filtered out (#5032
Browse files Browse the repository at this point in the history
)
  • Loading branch information
anotherchrisberry committed Mar 21, 2018
1 parent c2bdbf7 commit fa56cb7
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,10 @@ export class Applications extends React.Component<{}, IApplicationsState> {
<div className="container">
{!applications && <LoadingSpinner/>}

{applications && (
{applications && applications.length === 0 && (
<h4>No matches found for '{this.filter$.value}'</h4>
)}
{applications && applications.length > 0 && (
<div className="infrastructure-section">
<ApplicationTable currentSort={currentSort} applications={applications} toggleSort={(column) => this.toggleSort(column)}/>
<PaginationControls onPageChanged={changePage} activePage={currentPage} totalPages={Math.ceil(maxSize / itemsPerPage)} />
Expand Down

0 comments on commit fa56cb7

Please sign in to comment.