From 958caa6fc7f13adea6f2d23ddf5622d3476e1513 Mon Sep 17 00:00:00 2001 From: Joseph Schorr Date: Fri, 13 Mar 2015 15:39:14 -0700 Subject: [PATCH] Make sure we use the single-tag deletion path if only a single tag is selected --- static/js/directives/repo-view/repo-panel-tags.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/static/js/directives/repo-view/repo-panel-tags.js b/static/js/directives/repo-view/repo-panel-tags.js index 5acdb9fed..6d845796e 100644 --- a/static/js/directives/repo-view/repo-panel-tags.js +++ b/static/js/directives/repo-view/repo-panel-tags.js @@ -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); };