mirror of https://github.com/portainer/portainer
fix(app/images): export images to tar (#12223)
parent
fd26565b14
commit
7d0b79a546
|
@ -117,7 +117,7 @@ angular.module('portainer.docker').controller('ImagesController', [
|
||||||
$scope.state.exportInProgress = true;
|
$scope.state.exportInProgress = true;
|
||||||
ImageService.downloadImages(images)
|
ImageService.downloadImages(images)
|
||||||
.then(function success(data) {
|
.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');
|
FileSaver.saveAs(downloadData, 'images.tar');
|
||||||
Notifications.success('Success', 'Image(s) successfully downloaded');
|
Notifications.success('Success', 'Image(s) successfully downloaded');
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue