mirror of
https://github.com/portainer/portainer.git
synced 2025-08-08 07:15:23 +02:00
parent
c3ce4d8b53
commit
7bd971f838
65 changed files with 115 additions and 92 deletions
|
@ -76,7 +76,7 @@ angular.module('portainer.docker').controller('ImageController', [
|
|||
|
||||
ImageService.tagImage($transition$.params().id, image.fromImage)
|
||||
.then(function success() {
|
||||
Notifications.success('Image successfully tagged');
|
||||
Notifications.success('Success', 'Image successfully tagged');
|
||||
$state.go('docker.images.image', { id: $transition$.params().id }, { reload: true });
|
||||
})
|
||||
.catch(function error(err) {
|
||||
|
@ -155,7 +155,7 @@ angular.module('portainer.docker').controller('ImageController', [
|
|||
.then(function success(data) {
|
||||
var downloadData = new Blob([data.file], { type: 'application/x-tar' });
|
||||
FileSaver.saveAs(downloadData, 'images.tar');
|
||||
Notifications.success('Image successfully downloaded');
|
||||
Notifications.success('Success', 'Image successfully downloaded');
|
||||
})
|
||||
.catch(function error(err) {
|
||||
Notifications.error('Failure', err, 'Unable to download image');
|
||||
|
|
|
@ -90,7 +90,7 @@ angular.module('portainer.docker').controller('ImagesController', [
|
|||
.then(function success(data) {
|
||||
var downloadData = new Blob([data.file], { type: 'application/x-tar' });
|
||||
FileSaver.saveAs(downloadData, 'images.tar');
|
||||
Notifications.success('Image(s) successfully downloaded');
|
||||
Notifications.success('Success', 'Image(s) successfully downloaded');
|
||||
})
|
||||
.catch(function error(err) {
|
||||
Notifications.error('Failure', err, 'Unable to download image(s)');
|
||||
|
|
|
@ -58,9 +58,9 @@ angular.module('portainer.docker').controller('ImportImageController', [
|
|||
await tagImage(imageIds[1]);
|
||||
$state.go('docker.images.image', { id: imageIds[1] }, { reload: true });
|
||||
}
|
||||
Notifications.success('Images successfully uploaded');
|
||||
Notifications.success('Success', 'Images successfully uploaded');
|
||||
} else {
|
||||
Notifications.success('The uploaded tar file contained multiple images. The provided tag therefore has been ignored.');
|
||||
Notifications.success('Success', 'The uploaded tar file contained multiple images. The provided tag therefore has been ignored.');
|
||||
}
|
||||
} catch (err) {
|
||||
Notifications.error('Failure', err, 'Unable to upload image');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue