mirror of
https://github.com/portainer/portainer.git
synced 2025-07-30 18:59:41 +02:00
refactor(docker/containers): remove EndpointProvider from container service [EE-6180] (#10392)
This commit is contained in:
parent
b80fcb0467
commit
8e1417b4e9
20 changed files with 102 additions and 106 deletions
|
@ -33,11 +33,11 @@ angular.module('portainer.docker').factory('ImageService', [
|
|||
return deferred.promise;
|
||||
};
|
||||
|
||||
service.images = function (withUsage) {
|
||||
service.images = function ({ environmentId, withUsage } = {}) {
|
||||
var deferred = $q.defer();
|
||||
|
||||
$q.all({
|
||||
containers: withUsage ? ContainerService.containers(1) : [],
|
||||
containers: withUsage ? ContainerService.containers(environmentId, 1) : [],
|
||||
images: Image.query({}).$promise,
|
||||
})
|
||||
.then(function success(data) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue