mirror of
https://github.com/ansible/awx.git
synced 2026-01-11 01:57:35 -03:30
fix for traceback
This commit is contained in:
parent
bad9e9fcf0
commit
484eda4aa1
@ -107,11 +107,11 @@ function(jobData, jobDataOptions, jobLabels, jobFinished, count, $scope, ParseTy
|
||||
}));
|
||||
|
||||
$scope.previousTaskFailed = false;
|
||||
$scope.hideTraceback = false;
|
||||
|
||||
toDestroy.push($scope.$watch('job.job_explanation', function(explanation) {
|
||||
if (explanation && explanation.split(":")[0] === "Previous Task Failed") {
|
||||
$scope.previousTaskFailed = true;
|
||||
|
||||
var taskObj = JSON.parse(explanation.substring(explanation.split(":")[0].length + 1));
|
||||
// return a promise from the options request with the permission type choices (including adhoc) as a param
|
||||
var fieldChoice = fieldChoices({
|
||||
@ -132,10 +132,6 @@ function(jobData, jobDataOptions, jobLabels, jobFinished, count, $scope, ParseTy
|
||||
$scope.explanation_fail_id = taskObj.job_id;
|
||||
$scope.task_detail = $scope.explanation_fail_type + " failed for " + $scope.explanation_fail_name + " with ID " + $scope.explanation_fail_id + ".";
|
||||
});
|
||||
|
||||
if(taskObj.job_type === "project_update"){
|
||||
$scope.hideTraceback = true;
|
||||
}
|
||||
} else {
|
||||
$scope.previousTaskFailed = false;
|
||||
}
|
||||
|
||||
@ -127,7 +127,7 @@
|
||||
|
||||
<!-- RESULTS TRACEBACK DETAIL -->
|
||||
<div class="JobResults-resultRow"
|
||||
ng-show="job.result_traceback && !hideTraceback">
|
||||
ng-show="job.result_traceback && !previousTaskFailed">
|
||||
<label class="JobResults-resultRowLabel">
|
||||
Results Traceback
|
||||
</label>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user