mirror of
https://github.com/ZwareBear/awx.git
synced 2026-04-29 03:11:48 -05:00
AC-1016 on host status fly-out job id now links to job detail page rather than showing modal dialog. Fixed js errors happening when job_template is deleted and cannot be found.
This commit is contained in:
@@ -255,7 +255,7 @@ function JobsEdit ($scope, $rootScope, $compile, $location, $log, $routeParams,
|
||||
check_field: 'allow_callbacks',
|
||||
default_val: dft
|
||||
});
|
||||
scope.callback_url = data.related.callback;
|
||||
scope.callback_url = (data.related) ? data.related.callback : '<< Job template not found >>';
|
||||
scope.$emit('jobTemplateLoadFinished');
|
||||
})
|
||||
.error( function() {
|
||||
@@ -340,7 +340,7 @@ function JobsEdit ($scope, $rootScope, $compile, $location, $log, $routeParams,
|
||||
}
|
||||
|
||||
scope.id = data.id;
|
||||
scope.name = data.summary_fields.job_template.name;
|
||||
scope.name = (data.summary_fields && data.summary_fields.job_template) ? data.summary_fields.job_template.name : '';
|
||||
|
||||
if (fld === 'variables') {
|
||||
// Parse extra_vars, converting to YAML.
|
||||
|
||||
Reference in New Issue
Block a user