Add ability to add/move a tag in the tag view

This commit is contained in:
Joseph Schorr 2015-03-19 15:23:34 -04:00
parent c066df6d21
commit 3959ea2ff9
2 changed files with 7 additions and 0 deletions

View file

@ -86,6 +86,9 @@
<span class="cor-option" option-click="askDeleteTag(tag.name)">
<i class="fa fa-times"></i> Delete Tag
</span>
<span class="cor-option" option-click="askAddTag(tag)">
<i class="fa fa-plus"></i> Add New Tag
</span>
</span>
</td>
</tr>

View file

@ -166,6 +166,10 @@ angular.module('quay').directive('repoPanelTags', function () {
$scope.tagActionHandler.askDeleteMultipleTags(tags);
};
$scope.askAddTag = function(tag) {
$scope.tagActionHandler.askAddTag(tag.image_id);
};
$scope.orderBy = function(predicate) {
if (predicate == $scope.options.predicate) {
$scope.options.reverse = !$scope.options.reverse;