mirror of
https://github.com/portainer/portainer.git
synced 2025-08-02 20:35:25 +02:00
feat(image): define a new response handler for image deletion
This commit is contained in:
parent
4125361fb5
commit
789750cc86
4 changed files with 34 additions and 19 deletions
|
@ -81,7 +81,11 @@ function ($scope, $state, Config, Image, Messages) {
|
|||
}
|
||||
complete();
|
||||
}, function (e) {
|
||||
Messages.error("Unable to remove image", e.data);
|
||||
if (e.data.message) {
|
||||
Messages.error("Failure", e.data.message);
|
||||
} else {
|
||||
Messages.error("Failure", 'Unable to remove image');
|
||||
}
|
||||
complete();
|
||||
});
|
||||
}
|
||||
|
@ -104,5 +108,4 @@ function ($scope, $state, Config, Image, Messages) {
|
|||
$scope.availableRegistries = c.registries;
|
||||
fetchImages();
|
||||
});
|
||||
|
||||
}]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue