mirror of
https://github.com/fleetdm/fleet
synced 2026-05-23 08:58:41 +00:00
[Bug fix] Controls > OS settings: Plural "1 hosts" (#35611)
For the following bug: - #35610 @noahtalerman: I didn't test/QA this myself. I moved the bug to "Awaiting QA"
This commit is contained in:
parent
5679052134
commit
05a43df309
1 changed files with 5 additions and 1 deletions
|
|
@ -29,6 +29,8 @@ const ProfileStatusCount = ({
|
|||
hostCount,
|
||||
tooltipText,
|
||||
}: IProfileStatusCountProps) => {
|
||||
const countText = hostCount === 1 ? "host" : "hosts";
|
||||
|
||||
return (
|
||||
<div className={`${baseClass}__profile-status-count`}>
|
||||
<StatusIndicatorWithIcon
|
||||
|
|
@ -38,7 +40,9 @@ const ProfileStatusCount = ({
|
|||
layout="vertical"
|
||||
valueClassName={`${baseClass}__status-indicator-value`}
|
||||
/>
|
||||
<div className={`${baseClass}__host-count`}>{hostCount} hosts</div>
|
||||
<div className={`${baseClass}__host-count`}>
|
||||
{hostCount} {countText}
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in a new issue