Fix missing change to code handling tags and images
This commit is contained in:
parent
a45054bf2e
commit
fc384b20a6
1 changed files with 9 additions and 4 deletions
|
@ -4896,7 +4896,7 @@ quayApp.directive('tagSpecificImagesView', function () {
|
||||||
}
|
}
|
||||||
|
|
||||||
var currentTag = $scope.repository.tags[$scope.tag];
|
var currentTag = $scope.repository.tags[$scope.tag];
|
||||||
if (image.dbid == currentTag.image.dbid) {
|
if (image.dbid == currentTag.dbid) {
|
||||||
classes += 'tag-image ';
|
classes += 'tag-image ';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -4906,8 +4906,6 @@ quayApp.directive('tagSpecificImagesView', function () {
|
||||||
var forAllTagImages = function(tag, callback) {
|
var forAllTagImages = function(tag, callback) {
|
||||||
if (!tag) { return; }
|
if (!tag) { return; }
|
||||||
|
|
||||||
callback(tag.image);
|
|
||||||
|
|
||||||
if (!$scope.imageByDBID) {
|
if (!$scope.imageByDBID) {
|
||||||
$scope.imageByDBID = [];
|
$scope.imageByDBID = [];
|
||||||
for (var i = 0; i < $scope.images.length; ++i) {
|
for (var i = 0; i < $scope.images.length; ++i) {
|
||||||
|
@ -4916,7 +4914,14 @@ quayApp.directive('tagSpecificImagesView', function () {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
var ancestors = tag.image.ancestors.split('/');
|
var tag_image = $scope.imageByDBID[tag.dbid];
|
||||||
|
if (!tag_image) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
callback(tag_image);
|
||||||
|
|
||||||
|
var ancestors = tag_image.ancestors.split('/');
|
||||||
for (var i = 0; i < ancestors.length; ++i) {
|
for (var i = 0; i < ancestors.length; ++i) {
|
||||||
var image = $scope.imageByDBID[ancestors[i]];
|
var image = $scope.imageByDBID[ancestors[i]];
|
||||||
if (image) {
|
if (image) {
|
||||||
|
|
Reference in a new issue