mirror of https://github.com/portainer/portainer
Do not display empty changes
parent
b516fcdd0e
commit
fde898aa1f
|
@ -141,6 +141,10 @@ function ContainerController($scope, $routeParams, $location, Container) {
|
||||||
|
|
||||||
$scope.changes = [];
|
$scope.changes = [];
|
||||||
|
|
||||||
|
$scope.hasContent = function(data) {
|
||||||
|
return data !== null && data !== undefined && data.length > 1;
|
||||||
|
};
|
||||||
|
|
||||||
$scope.getChanges = function() {
|
$scope.getChanges = function() {
|
||||||
Container.changes({id: $routeParams.id}, function(d) {
|
Container.changes({id: $routeParams.id}, function(d) {
|
||||||
$scope.changes = d;
|
$scope.changes = d;
|
||||||
|
|
|
@ -52,7 +52,7 @@
|
||||||
|
|
||||||
<div class="well well-large">
|
<div class="well well-large">
|
||||||
<ul>
|
<ul>
|
||||||
<li ng-repeat="change in changes">
|
<li ng-repeat="change in changes | filter:hasContent">
|
||||||
<strong>{{ change.Path }}</strong> {{ change.Kind }}
|
<strong>{{ change.Path }}</strong> {{ change.Kind }}
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
Loading…
Reference in New Issue