1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-04-01 01:18:10 +02:00

feat: add application counter to application list (#2019)

This commit is contained in:
Christopher Kolstad 2022-08-31 16:10:01 +02:00 committed by GitHub
parent 4536fdd817
commit 2de4114b76
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -59,12 +59,17 @@ export const ApplicationList = () => {
return <CircularProgress variant="indeterminate" />; return <CircularProgress variant="indeterminate" />;
} }
let applicationCount =
filteredApplications.length < applications.length
? `${filteredApplications.length} of ${applications.length}`
: applications.length;
return ( return (
<> <>
<PageContent <PageContent
header={ header={
<PageHeader <PageHeader
title="Applications" title={`Applications (${applicationCount})`}
actions={ actions={
<Search <Search
initialValue={searchValue} initialValue={searchValue}