1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-23 07:19:41 +02:00

Do not display empty changes

This commit is contained in:
Michael Crosby 2013-06-14 16:15:14 -09:00
parent b516fcdd0e
commit fde898aa1f
2 changed files with 5 additions and 1 deletions

View file

@ -141,6 +141,10 @@ function ContainerController($scope, $routeParams, $location, Container) {
$scope.changes = [];
$scope.hasContent = function(data) {
return data !== null && data !== undefined && data.length > 1;
};
$scope.getChanges = function() {
Container.changes({id: $routeParams.id}, function(d) {
$scope.changes = d;