1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-30 10:49:40 +02:00

fix(docker/images): export image [EE-6807] (#11306)

This commit is contained in:
Chaim Lev-Ari 2024-03-05 19:30:48 +02:00 committed by GitHub
parent ebcc98d5c5
commit 18dbad232e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 7 additions and 2 deletions

View file

@ -171,6 +171,11 @@ angular.module('portainer.docker').factory('ImageService', [
return Image.tag({ id: id, repo: image }).$promise;
};
/**
*
* @param {Array<{tags: Array<string>; id: string;}>} images
* @returns {Promise<unknown>}
*/
service.downloadImages = function (images) {
var names = ImageHelper.getImagesNamesForDownload(images);
return Image.download(names).$promise;