Make sure we use the single-tag deletion path if only a single tag is selected
This commit is contained in:
parent
1a3bcb0f8d
commit
958caa6fc7
1 changed files with 5 additions and 0 deletions
|
@ -168,6 +168,11 @@ angular.module('quay').directive('repoPanelTags', function () {
|
||||||
};
|
};
|
||||||
|
|
||||||
$scope.askDeleteMultipleTags = function(tags) {
|
$scope.askDeleteMultipleTags = function(tags) {
|
||||||
|
if (tags.length == 1) {
|
||||||
|
$scope.askDeleteTag(tags[0].name);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
$scope.tagActionHandler.askDeleteMultipleTags(tags);
|
$scope.tagActionHandler.askDeleteMultipleTags(tags);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Reference in a new issue