Fix the image track offsets in the repo tags UI
We were missing the `Features` injected into the scope, so the calculation was already returning false
This commit is contained in:
parent
1d57e1eb9f
commit
b4ee3578d7
2 changed files with 4 additions and 2 deletions
|
@ -298,7 +298,7 @@
|
|||
<!-- Expanded View -->
|
||||
<tr ng-if="expandedView" class="expanded-viewport" ng-class="{'manifest-list': tag.is_manifest_list}">
|
||||
<td class="checkbox-col"></td>
|
||||
<td class="labels-col" colspan="{{6 + (repository.trust_enabled ? 1 : 0) + (Features.SECURITY_SCANNER ? 1 : -1) }}">
|
||||
<td class="labels-col" colspan="{{5 + (repository.trust_enabled ? 1 : 0) + (Features.SECURITY_SCANNER ? 1 : 0) }}">
|
||||
<!-- Image ID -->
|
||||
<div class="image-id-row">
|
||||
<manifest-link repository="repository" image-id="tag.image_id" manifest-digest="tag.manifest_digest"></manifest-link>
|
||||
|
|
|
@ -20,7 +20,9 @@ angular.module('quay').directive('repoPanelTags', function () {
|
|||
|
||||
'getImages': '&getImages'
|
||||
},
|
||||
controller: function($scope, $element, $filter, $location, ApiService, UIService, VulnerabilityService, TableService) {
|
||||
controller: function($scope, $element, $filter, $location, ApiService, UIService, VulnerabilityService, TableService, Features) {
|
||||
$scope.Features = Features;
|
||||
|
||||
$scope.maxTrackCount = 5;
|
||||
|
||||
$scope.checkedTags = UIService.createCheckStateController([], 'name');
|
||||
|
|
Reference in a new issue