Make sure we use the single-tag deletion path if only a single tag is selected

This commit is contained in:
Joseph Schorr 2015-03-13 15:39:14 -07:00
parent 1a3bcb0f8d
commit 958caa6fc7

View file

@ -168,6 +168,11 @@ angular.module('quay').directive('repoPanelTags', function () {
};
$scope.askDeleteMultipleTags = function(tags) {
if (tags.length == 1) {
$scope.askDeleteTag(tags[0].name);
return;
}
$scope.tagActionHandler.askDeleteMultipleTags(tags);
};