1
0
Fork 0
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:
Anthony Lapenna 2016-09-01 14:24:47 +12:00
parent 4125361fb5
commit 789750cc86
4 changed files with 34 additions and 19 deletions

View file

@ -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');
}
});
};