Skip to content

Commit

Permalink
[UXD][AAP-25027] AWX - updates to Roles section breadcrumbs & headers (
Browse files Browse the repository at this point in the history
  • Loading branch information
tiyiprh authored Aug 16, 2024
1 parent c1f2f89 commit de66851
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions frontend/awx/access/roles/RoleForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,13 @@ export function CreateRole(props: { breadcrumbLabelForPreviousPage?: string }) {
return (
<PageLayout>
<PageHeader
title={t('Create Role')}
title={t('Create role')}
breadcrumbs={[
{
label: props.breadcrumbLabelForPreviousPage || t('Roles'),
to: getPageUrl(AwxRoute.Roles),
},
{ label: t('Create Role') },
{ label: t('Create role') },
]}
/>
<AwxPageForm<AwxRbacRole>
Expand Down Expand Up @@ -100,13 +100,10 @@ export function EditRole(props: { breadcrumbLabelForPreviousPage?: string }) {
return (
<PageLayout>
<PageHeader
title={t('Edit Role')}
title={role?.name ? t('Edit {{roleName}}', { roleName: role?.name }) : t('Roles')}
breadcrumbs={[
{
label: props.breadcrumbLabelForPreviousPage || t('Roles'),
to: getPageUrl(AwxRoute.Roles),
},
{ label: t('Edit Role') },
{ label: t('Roles'), to: getPageUrl(AwxRoute.Roles) },
{ label: role?.name ? t('Edit {{roleName}}', { roleName: role?.name }) : t('Roles') },
]}
/>
<AwxPageForm<AwxRbacRole>
Expand Down

0 comments on commit de66851

Please sign in to comment.