Skip to content

Commit

Permalink
Merge pull request #4101 from rawagner/fix_quay_sec
Browse files Browse the repository at this point in the history
pluralize namespace word in quay img security popup
  • Loading branch information
openshift-merge-robot committed Jan 29, 2020
2 parents 72b67ed + 9f666e6 commit f37dd85
Showing 1 changed file with 5 additions and 4 deletions.
@@ -1,5 +1,6 @@
import * as React from 'react';
import * as _ from 'lodash';
import { pluralize } from '@patternfly/react-core';
import { ChartDonut } from '@patternfly/react-charts';
import { SecurityIcon } from '@patternfly/react-icons';
import { URLHealthHandler } from '@console/plugin-sdk';
Expand Down Expand Up @@ -115,12 +116,12 @@ export const SecurityBreakdownPopup: React.FC<SecurityBreakdownPopupProps> = (pr
v.metadata.name
}`}
>
{
{pluralize(
props.k8sResult.data.filter(
({ metadata }) => metadata.name === v.metadata.name,
).length
}{' '}
namespaces
).length,
'namespace',
)}
</Link>
</div>
</div>
Expand Down

0 comments on commit f37dd85

Please sign in to comment.