diff --git a/static/js/directives/ui/build-logs-view.js b/static/js/directives/ui/build-logs-view.js index 24d73903e..9d1dd7569 100644 --- a/static/js/directives/ui/build-logs-view.js +++ b/static/js/directives/ui/build-logs-view.js @@ -117,15 +117,19 @@ angular.module('quay').directive('buildLogsView', function () { $.ajax({ url: logsUrl, }).done(function(r) { - handleLogsData(r, callback); + $scope.$apply(function() { + handleLogsData(r, callback); + }); }).error(function(xhr) { - if (xhr.status == 0) { - UtilService.isAdBlockEnabled(function(result) { - $scope.loadError = result ? 'blocked': 'request-failed'; - }); - } else { - $scope.loadError = 'request-failed'; - } + $scope.$apply(function() { + if (xhr.status == 0) { + UtilService.isAdBlockEnabled(function(result) { + $scope.loadError = result ? 'blocked': 'request-failed'; + }); + } else { + $scope.loadError = 'request-failed'; + } + }); }); return;