Skip to content

Commit

Permalink
Merge pull request openshift#8782 from rhamilto/bz1941798
Browse files Browse the repository at this point in the history
Bug 1941798:  i18n kind on LimitRange and ResourceQuota list pages
  • Loading branch information
openshift-merge-robot authored Apr 27, 2021
2 parents 03575ec + c96874c commit 3ea5bb0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 13 deletions.
8 changes: 1 addition & 7 deletions frontend/public/components/limit-range.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -97,13 +97,7 @@ export const LimitRangeList: React.FC = (props) => {
};

export const LimitRangeListPage: React.FC<LimitRangeListPageProps> = (props) => (
<ListPage
{...props}
title={LimitRangeModel.labelPlural}
kind={LimitRangeReference}
ListComponent={LimitRangeList}
canCreate={true}
/>
<ListPage {...props} kind={LimitRangeReference} ListComponent={LimitRangeList} canCreate={true} />
);

export const LimitRangeDetailsRow: React.SFC<LimitRangeDetailsRowProps> = ({
Expand Down
8 changes: 3 additions & 5 deletions frontend/public/components/resource-quota.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -443,16 +443,14 @@ export const ResourceQuotasPage = connectToFlags(FLAGS.OPENSHIFT)(
<MultiListPage
canCreate={true}
createAccessReview={accessReview}
createButtonText={t('resource-quota~Create {{resource}}', {
resource: ResourceQuotaModel.label,
})}
createButtonText={t('resource-quota~Create ResourceQuota')}
createProps={{ to: `/k8s/ns/${createNS}/resourcequotas/~new` }}
ListComponent={ResourceQuotasList}
resources={resources}
label={ResourceQuotaModel.labelPlural}
label={t(ResourceQuotaModel.labelPluralKey)}
namespace={namespace}
flatten={flatten}
title={ResourceQuotaModel.labelPlural}
title={t(ResourceQuotaModel.labelPluralKey)}
rowFilters={rowFilters}
mock={mock}
showTitle={showTitle}
Expand Down
2 changes: 1 addition & 1 deletion frontend/public/locales/en/resource-quota.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,5 @@
"Role": "Role",
"Cluster-wide {{resource}}": "Cluster-wide {{resource}}",
"Namespace {{resource}}": "Namespace {{resource}}",
"Create {{resource}}": "Create {{resource}}"
"Create ResourceQuota": "Create ResourceQuota"
}

0 comments on commit 3ea5bb0

Please sign in to comment.