mirror of
https://github.com/portainer/portainer.git
synced 2025-07-27 09:19:39 +02:00
fix(containers): fix an issue with filters
This commit is contained in:
parent
7eaaf9a2a7
commit
730925b286
2 changed files with 5 additions and 9 deletions
|
@ -20,8 +20,7 @@ angular.module('portainer.services')
|
|||
|
||||
service.containers = function(all, filters) {
|
||||
var deferred = $q.defer();
|
||||
filters.all = all;
|
||||
Container.query(filters).$promise
|
||||
Container.query({ all : all, filters: filters }).$promise
|
||||
.then(function success(data) {
|
||||
var containers = data.map(function (item) {
|
||||
return new ContainerViewModel(item);
|
||||
|
@ -142,7 +141,7 @@ angular.module('portainer.services')
|
|||
service.containerTop = function(id) {
|
||||
return Container.top({id: id}).$promise;
|
||||
};
|
||||
|
||||
|
||||
service.inspect = function(id) {
|
||||
return Container.inspect({id: id}).$promise;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue