Skip to content

Commit

Permalink
Consistency in entities title
Browse files Browse the repository at this point in the history
  • Loading branch information
oharsta committed Dec 11, 2024
1 parent 62a4951 commit 9792b46
Showing 1 changed file with 14 additions and 19 deletions.
33 changes: 14 additions & 19 deletions client/src/tabs/ApplicationUsers.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,24 +113,19 @@ export const ApplicationUsers = () => {
},
];

const title = I18n.t(`users.found`, {
count: totalElements,
plural: I18n.t(`users.${totalElements === 1 ? "singleUser" : "multipleUsers"}`)
})

return (<div className="mod-application-users">
{searching && <Loader/>}

<Entities entities={users}
modelName="users"
defaultSort="name"
columns={columns}
title={title}
inputFocus={true}
totalElements={totalElements}
customSearch={search}
hideTitle={searching}
busy={searching}/>
</div>)
return (
<div className="mod-application-users">
{searching && <Loader/>}
<Entities entities={users}
modelName="users"
defaultSort="name"
columns={columns}
inputFocus={true}
totalElements={totalElements}
customSearch={search}
hideTitle={searching}
busy={searching}/>
</div>
);

}

0 comments on commit 9792b46

Please sign in to comment.