Move tag actions into a menu and fix view history action
This commit is contained in:
parent
25db46c341
commit
f206b4b95e
3 changed files with 30 additions and 10 deletions
|
@ -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;
|
||||
|
|
Reference in a new issue