Merge pull request #1898 from coreos-inc/build-logs-scope-apply
Add missing $scope.$apply in the build logs view
This commit is contained in:
commit
c4ad513834
1 changed files with 12 additions and 8 deletions
|
@ -117,8 +117,11 @@ angular.module('quay').directive('buildLogsView', function () {
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url: logsUrl,
|
url: logsUrl,
|
||||||
}).done(function(r) {
|
}).done(function(r) {
|
||||||
|
$scope.$apply(function() {
|
||||||
handleLogsData(r, callback);
|
handleLogsData(r, callback);
|
||||||
|
});
|
||||||
}).error(function(xhr) {
|
}).error(function(xhr) {
|
||||||
|
$scope.$apply(function() {
|
||||||
if (xhr.status == 0) {
|
if (xhr.status == 0) {
|
||||||
UtilService.isAdBlockEnabled(function(result) {
|
UtilService.isAdBlockEnabled(function(result) {
|
||||||
$scope.loadError = result ? 'blocked': 'request-failed';
|
$scope.loadError = result ? 'blocked': 'request-failed';
|
||||||
|
@ -127,6 +130,7 @@ angular.module('quay').directive('buildLogsView', function () {
|
||||||
$scope.loadError = 'request-failed';
|
$scope.loadError = 'request-failed';
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
});
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue