From b4ee3578d76f0f930e86dbdec41f83d973eee3d6 Mon Sep 17 00:00:00 2001 From: Joseph Schorr Date: Wed, 12 Dec 2018 11:48:33 -0500 Subject: [PATCH] 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 --- static/directives/repo-view/repo-panel-tags.html | 2 +- static/js/directives/repo-view/repo-panel-tags.js | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/static/directives/repo-view/repo-panel-tags.html b/static/directives/repo-view/repo-panel-tags.html index 5f32f4cb9..e8332b4cc 100644 --- a/static/directives/repo-view/repo-panel-tags.html +++ b/static/directives/repo-view/repo-panel-tags.html @@ -298,7 +298,7 @@ - +
diff --git a/static/js/directives/repo-view/repo-panel-tags.js b/static/js/directives/repo-view/repo-panel-tags.js index 80b817ffa..9fbe7c2ba 100644 --- a/static/js/directives/repo-view/repo-panel-tags.js +++ b/static/js/directives/repo-view/repo-panel-tags.js @@ -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');