1
0
Fork 0
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:
Chaim Lev-Ari 2023-10-11 10:26:44 +03:00 committed by GitHub
parent b80fcb0467
commit 8e1417b4e9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
20 changed files with 102 additions and 106 deletions

View file

@ -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) {