Move tag actions into a menu and fix view history action

This commit is contained in:
Joseph Schorr 2017-03-08 13:06:57 -05:00
parent 25db46c341
commit f206b4b95e
3 changed files with 30 additions and 10 deletions

View file

@ -11,6 +11,7 @@ angular.module('quay').directive('repoPanelTags', function () {
scope: {
'repository': '=repository',
'selectedTags': '=selectedTags',
'historyFilter': '=historyFilter',
'imagesResource': '=imagesResource',
'imageLoader': '=imageLoader',
@ -349,6 +350,15 @@ angular.module('quay').directive('repoPanelTags', function () {
});
};
$scope.showHistory = function(checked) {
if (!checked.length) {
return;
}
$scope.historyFilter = $scope.getTagNames(checked);
$scope.setTab('history');
};
$scope.getTagNames = function(checked) {
var names = checked.map(function(tag) {
return tag.name;