mirror of
https://github.com/ansible/awx.git
synced 2026-03-01 00:38:45 -03:30
Handle undefined schedule value in job detail component
This commit is contained in:
@@ -282,10 +282,12 @@ function getLaunchedByDetails () {
|
|||||||
tooltip = strings.get('tooltips.SCHEDULE');
|
tooltip = strings.get('tooltips.SCHEDULE');
|
||||||
link = `/#/templates/job_template/${jobTemplate.id}/schedules/${schedule.id}`;
|
link = `/#/templates/job_template/${jobTemplate.id}/schedules/${schedule.id}`;
|
||||||
value = $filter('sanitize')(schedule.name);
|
value = $filter('sanitize')(schedule.name);
|
||||||
} else {
|
} else if (schedule) {
|
||||||
tooltip = null;
|
tooltip = null;
|
||||||
link = null;
|
link = null;
|
||||||
value = $filter('sanitize')(schedule.name);
|
value = $filter('sanitize')(schedule.name);
|
||||||
|
} else {
|
||||||
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
return { label, link, tooltip, value };
|
return { label, link, tooltip, value };
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
<!-- LEFT PANE HEADER ACTIONS -->
|
<!-- LEFT PANE HEADER ACTIONS -->
|
||||||
<div class="JobResults-panelHeaderButtonActions">
|
<div class="JobResults-panelHeaderButtonActions">
|
||||||
<!-- RELAUNCH ACTION -->
|
<!-- RELAUNCH ACTION -->
|
||||||
<at-relaunch job="vm.job"></at-relaunch>
|
<at-relaunch ng-if="vm.job" job="vm.job"></at-relaunch>
|
||||||
|
|
||||||
<!-- CANCEL ACTION -->
|
<!-- CANCEL ACTION -->
|
||||||
<button
|
<button
|
||||||
|
|||||||
Reference in New Issue
Block a user