mirror of
https://github.com/ansible/awx.git
synced 2026-05-18 06:47:41 -02:30
Change nestedResource to schedule in setBreadcrumbConfig. As it currently stands the only nested resource that could be passed here is a schedule.
This commit is contained in:
@@ -27,7 +27,7 @@ class Templates extends Component {
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
setBreadCrumbConfig = (template, nestedResource) => {
|
setBreadCrumbConfig = (template, schedule) => {
|
||||||
const { i18n } = this.props;
|
const { i18n } = this.props;
|
||||||
if (!template) {
|
if (!template) {
|
||||||
return;
|
return;
|
||||||
@@ -56,10 +56,10 @@ class Templates extends Component {
|
|||||||
[`/templates/${template.type}/${template.id}/schedules`]: i18n._(
|
[`/templates/${template.type}/${template.id}/schedules`]: i18n._(
|
||||||
t`Schedules`
|
t`Schedules`
|
||||||
),
|
),
|
||||||
[`/templates/${template.type}/${template.id}/schedules/${nestedResource &&
|
[`/templates/${template.type}/${template.id}/schedules/${schedule &&
|
||||||
nestedResource.id}`]: `${nestedResource && nestedResource.name}`,
|
schedule.id}`]: `${schedule && schedule.name}`,
|
||||||
[`/templates/${template.type}/${template.id}/schedules/${nestedResource &&
|
[`/templates/${template.type}/${template.id}/schedules/${schedule &&
|
||||||
nestedResource.id}/details`]: i18n._(t`Schedule Details`),
|
schedule.id}/details`]: i18n._(t`Schedule Details`),
|
||||||
};
|
};
|
||||||
this.setState({ breadcrumbConfig });
|
this.setState({ breadcrumbConfig });
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user