Add selection of images by railroad track
This commit is contained in:
parent
e0f11f46e5
commit
e58144eec5
3 changed files with 8 additions and 1 deletions
|
@ -25,6 +25,7 @@
|
||||||
|
|
||||||
border: 2px solid black;
|
border: 2px solid black;
|
||||||
border-radius: 50%;
|
border-radius: 50%;
|
||||||
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
.repo-panel-tags-element .image-track-line {
|
.repo-panel-tags-element .image-track-line {
|
||||||
|
|
|
@ -72,7 +72,7 @@
|
||||||
</td>
|
</td>
|
||||||
<td class="image-track" ng-repeat="it in imageTracks">
|
<td class="image-track" ng-repeat="it in imageTracks">
|
||||||
<span class="image-track-dot" ng-if="it.image_id == tag.image_id"
|
<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)"
|
<span class="image-track-line" ng-class="trackLineClass($parent.$index, it)"
|
||||||
ng-style="{'borderColor': it.color}"></span>
|
ng-style="{'borderColor': it.color}"></span>
|
||||||
</td>
|
</td>
|
||||||
|
|
|
@ -207,6 +207,12 @@ angular.module('quay').directive('repoPanelTags', function () {
|
||||||
$scope.setTab = function(tab) {
|
$scope.setTab = function(tab) {
|
||||||
$location.search('tab', tab);
|
$location.search('tab', tab);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
$scope.selectTrack = function(it) {
|
||||||
|
$scope.checkedTags.checkByFilter(function(tag) {
|
||||||
|
return $scope.imageIDFilter(it.image_id, tag);
|
||||||
|
});
|
||||||
|
};
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
return directiveDefinitionObject;
|
return directiveDefinitionObject;
|
||||||
|
|
Reference in a new issue