Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Improve polling change detection on container detail page
  • Loading branch information
gashcrumb committed Aug 6, 2013
1 parent 19fb7dc commit 0c4938d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions hawtio-web/src/main/webapp/app/fabric/js/container.ts
Expand Up @@ -140,7 +140,9 @@ module Fabric {
}

function render(response) {
if (!Object.equal($scope.row, response.value)) {
var responseJson = angular.toJson(response.value);
if ($scope.responseJson !== responseJson) {
$scope.responseJson = responseJson;
$scope.row = response.value;
if ($scope.row) {
if ($scope.row.provisionException !== null) {
Expand All @@ -155,8 +157,8 @@ module Fabric {
$scope.updateContainerProperty('resolver', $scope.row);
}
});
Core.$apply($scope);
}
Core.$apply($scope);
}
}

Expand Down

0 comments on commit 0c4938d

Please sign in to comment.