mirror of
https://github.com/ansible/awx.git
synced 2026-03-13 15:09:32 -02:30
add toDestroy to watch statement
This commit is contained in:
@@ -443,11 +443,11 @@ function(jobData, jobDataOptions, jobLabels, jobFinished, count, $scope, ParseTy
|
||||
$scope.isOld = 0;
|
||||
$scope.showLegacyJobErrorMessage = false;
|
||||
|
||||
$scope.$watch('isOld', function (val) {
|
||||
toDestroy.push($scope.$watch('isOld', function (val) {
|
||||
if (val >= 2) {
|
||||
$scope.showLegacyJobErrorMessage = true;
|
||||
}
|
||||
});
|
||||
}));
|
||||
|
||||
// get header and recap lines
|
||||
var skeletonPlayCount = 0;
|
||||
|
||||
Reference in New Issue
Block a user