1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-08-02 20:35:25 +02:00

fix(app/image-details): export images to tar (#40)

This commit is contained in:
LP B 2024-10-31 17:40:01 +01:00 committed by GitHub
parent 94b1d446c0
commit 9ea62bda28

View file

@ -166,7 +166,7 @@ angular.module('portainer.docker').controller('ImageController', [
$scope.state.exportInProgress = true;
ImageService.downloadImages([{ tags: image.RepoTags, id: image.Id }])
.then(function success(data) {
var downloadData = new Blob([data.file], { type: 'application/x-tar' });
var downloadData = new Blob([data], { type: 'application/x-tar' });
FileSaver.saveAs(downloadData, 'images.tar');
Notifications.success('Success', 'Image successfully downloaded');
})