1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-12-22 19:07:54 +01:00

feat: add count to project role list (#2037)

* feat: add count to project role list
This commit is contained in:
Christopher Kolstad 2022-09-02 08:35:15 +02:00 committed by GitHub
parent a7a4a743bc
commit 3d40d0d6db
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -182,12 +182,16 @@ const ProjectRoleList = () => {
setHiddenColumns(hiddenColumns);
}, [setHiddenColumns, isExtraSmallScreen]);
let count =
data.length < rows.length
? `(${data.length} of ${rows.length})`
: `(${rows.length})`;
return (
<PageContent
isLoading={loading}
header={
<PageHeader
title="Project roles"
title={`Project roles ${count}`}
actions={
<>
<Search