mirror of
https://github.com/Joxit/docker-registry-ui.git
synced 2026-05-23 04:42:47 +00:00
fix(tag-list): missing details on images built by buildah (#264)
fixes #264
This commit is contained in:
@@ -84,8 +84,8 @@ export class DockerImage {
|
||||
return this.trigger('content-digest-chars', this.chars);
|
||||
});
|
||||
this.on('get-content-digest', function () {
|
||||
if (this.digest !== undefined) {
|
||||
return this.trigger('content-digest', this.digest);
|
||||
if (this.contentDigest !== undefined) {
|
||||
return this.trigger('content-digest', this.contentDigest);
|
||||
}
|
||||
return this.fillInfo();
|
||||
});
|
||||
@@ -117,10 +117,10 @@ export class DockerImage {
|
||||
self.sha256 = response.config && response.config.digest;
|
||||
self.trigger('size', self.size);
|
||||
self.trigger('sha256', self.sha256);
|
||||
oReq.getContentDigest(function (digest) {
|
||||
self.digest = digest;
|
||||
self.trigger('content-digest', digest);
|
||||
if (!digest) {
|
||||
oReq.getContentDigest(function (contentDigest) {
|
||||
self.contentDigest = contentDigest;
|
||||
self.trigger('content-digest', contentDigest);
|
||||
if (!contentDigest) {
|
||||
self.opts.onNotify(ERROR_CAN_NOT_READ_CONTENT_DIGEST);
|
||||
}
|
||||
});
|
||||
|
||||
@@ -136,8 +136,13 @@ export function stripHttps(url) {
|
||||
return url.replace(/^https?:\/\//, '');
|
||||
}
|
||||
|
||||
function kebabToCamelCase(s) {
|
||||
return s.replace(/-[a-z]/, (x) => x[1].toUpperCase());
|
||||
}
|
||||
|
||||
export function eventTransfer(from, to) {
|
||||
from.on('*', function (event, param) {
|
||||
to[kebabToCamelCase(event)] = param;
|
||||
to.trigger(event, param);
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user