Fix handling of non-features from Clair and other small UI fixes
This commit is contained in:
parent
5b7d6b0638
commit
65037ac5e1
8 changed files with 95 additions and 17 deletions
|
@ -25,6 +25,10 @@ angular.module('quay').factory('ImageMetadataService', ['UtilService', function(
|
|||
};
|
||||
|
||||
metadataService.getImageCommand = function(image, imageId) {
|
||||
if (!image) {
|
||||
return null;
|
||||
}
|
||||
|
||||
if (!image.__imageMap) {
|
||||
image.__imageMap = {};
|
||||
for (var i = 0; i < image.history.length; ++i) {
|
||||
|
@ -33,7 +37,12 @@ angular.module('quay').factory('ImageMetadataService', ['UtilService', function(
|
|||
}
|
||||
}
|
||||
|
||||
return getDockerfileCommand(image.__imageMap[imageId].command);
|
||||
var found = image.__imageMap[imageId];
|
||||
if (!found) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return getDockerfileCommand(found.command);
|
||||
};
|
||||
|
||||
var getDockerfileCommand = function(command) {
|
||||
|
|
Reference in a new issue