Add selection of images by railroad track

This commit is contained in:
Joseph Schorr 2015-03-18 12:06:47 -04:00
parent e0f11f46e5
commit e58144eec5
3 changed files with 8 additions and 1 deletions

View file

@ -25,6 +25,7 @@
border: 2px solid black;
border-radius: 50%;
cursor: pointer;
}
.repo-panel-tags-element .image-track-line {

View file

@ -72,7 +72,7 @@
</td>
<td class="image-track" ng-repeat="it in imageTracks">
<span class="image-track-dot" ng-if="it.image_id == tag.image_id"
ng-style="{'borderColor': it.color}"></span>
ng-style="{'borderColor': it.color}" ng-click="selectTrack(it)"></span>
<span class="image-track-line" ng-class="trackLineClass($parent.$index, it)"
ng-style="{'borderColor': it.color}"></span>
</td>

View file

@ -207,6 +207,12 @@ angular.module('quay').directive('repoPanelTags', function () {
$scope.setTab = function(tab) {
$location.search('tab', tab);
};
$scope.selectTrack = function(it) {
$scope.checkedTags.checkByFilter(function(tag) {
return $scope.imageIDFilter(it.image_id, tag);
});
};
}
};
return directiveDefinitionObject;