|
|
@ -20,17 +20,6 @@ angular.module('portainer.docker')
|
|
|
|
return deferred.promise;
|
|
|
|
return deferred.promise;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
function replaceEmptyTagsWhenPossible(item) {
|
|
|
|
|
|
|
|
if (!item.RepoTags && item.RepoDigests) {
|
|
|
|
|
|
|
|
item.RepoTags = [];
|
|
|
|
|
|
|
|
for (var iDigest = 0; iDigest < item.RepoDigests.length; iDigest++) {
|
|
|
|
|
|
|
|
var digest = item.RepoDigests[iDigest];
|
|
|
|
|
|
|
|
var repository = digest.substring(0, digest.indexOf('@'));
|
|
|
|
|
|
|
|
item.RepoTags.push(repository + ':<none>');
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
service.images = function(withUsage) {
|
|
|
|
service.images = function(withUsage) {
|
|
|
|
var deferred = $q.defer();
|
|
|
|
var deferred = $q.defer();
|
|
|
|
|
|
|
|
|
|
|
@ -49,7 +38,6 @@ angular.module('portainer.docker')
|
|
|
|
item.ContainerCount++;
|
|
|
|
item.ContainerCount++;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
replaceEmptyTagsWhenPossible(item);
|
|
|
|
|
|
|
|
return new ImageViewModel(item);
|
|
|
|
return new ImageViewModel(item);
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|