mirror of
https://github.com/portainer/portainer.git
synced 2025-07-24 07:49:41 +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
|
@ -68,7 +68,11 @@ function ($scope, $stateParams, $state, Image, ImageHelper, Messages) {
|
|||
}
|
||||
}, function (e) {
|
||||
$('#loadingViewSpinner').hide();
|
||||
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');
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue