mirror of
https://github.com/balzack/databag.git
synced 2025-02-14 12:39:17 +00:00
removing revision param from registry image url
This commit is contained in:
parent
d6963d1978
commit
93c363c9e9
@ -15,7 +15,7 @@ export function Registry() {
|
|||||||
|
|
||||||
const registryImage = (item) => {
|
const registryImage = (item) => {
|
||||||
if (actions?.getRegistryImageUrl) {
|
if (actions?.getRegistryImageUrl) {
|
||||||
return actions.getRegistryImageUrl(item.guid, item.revision);
|
return actions.getRegistryImageUrl(item.guid);
|
||||||
}
|
}
|
||||||
return null
|
return null
|
||||||
}
|
}
|
||||||
|
@ -43,8 +43,8 @@ export function useRegistry() {
|
|||||||
updateState({ busy: false });
|
updateState({ busy: false });
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
getRegistryImageUrl: (guid, revision) => {
|
getRegistryImageUrl: (guid) => {
|
||||||
return getListingImageUrl(state.server, guid, revision);
|
return getListingImageUrl(state.server, guid);
|
||||||
},
|
},
|
||||||
select: (contact) => {
|
select: (contact) => {
|
||||||
navigate(`/user/contact/${contact.guid}`, { state: contact });
|
navigate(`/user/contact/${contact.guid}`, { state: contact });
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
export function getListingImageUrl(server, guid, revision) {
|
export function getListingImageUrl(server, guid) {
|
||||||
return `https://${server}/account/listing/${guid}/image?revision=${revision}`
|
return `https://${server}/account/listing/${guid}/image`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user