Skip to content

Commit

Permalink
Merge pull request #12585 from sg00dwin/operator-label-plural
Browse files Browse the repository at this point in the history
OCPBUGS-1706: Switch to use labelPlural for heading
  • Loading branch information
openshift-merge-robot committed Feb 21, 2023
2 parents 8403ea9 + 327bc09 commit b869655
Showing 1 changed file with 9 additions and 2 deletions.
Expand Up @@ -487,7 +487,14 @@ const DefaultProvidedAPIPage: React.FC<DefaultProvidedAPIPageProps> = (props) =>
} = props;
const createPath = `${match.url}/~new`;

const { apiGroup: group, apiVersion: version, kind, namespaced, label } = props.k8sModel;
const {
apiGroup: group,
apiVersion: version,
kind,
namespaced,
label,
labelPlural,
} = props.k8sModel;
const managesAllNamespaces = namespaced && hasAllNamespaces(csv);
const listAllNamespaces = managesAllNamespaces && showOperandsInAllNamespaces;
const [resources, loaded, loadError] = useK8sWatchResource<K8sResourceKind[]>({
Expand All @@ -501,7 +508,7 @@ const DefaultProvidedAPIPage: React.FC<DefaultProvidedAPIPageProps> = (props) =>

return (
<>
<ListPageHeader title={showTitle ? `${label}s` : undefined}>
<ListPageHeader title={showTitle ? `${labelPlural}` : undefined}>
{managesAllNamespaces && (
<div className="co-operator-details__toggle-value pf-u-ml-xl-on-md">
<ShowOperandsInAllNamespacesRadioGroup />
Expand Down

0 comments on commit b869655

Please sign in to comment.