This commit is contained in:
@@ -26,7 +26,8 @@ export function DockerUpdatesWidget() {
|
||||
}, [])
|
||||
|
||||
const outdated = containers.filter(c => c.upToDate === false).length
|
||||
const unknown = containers.filter(c => c.upToDate === null && c.registry !== 'docker.io' && c.registry !== 'ghcr.io').length
|
||||
const knownRegistries = ['docker.io', 'ghcr.io', 'lscr.io']
|
||||
const unknown = containers.filter(c => c.upToDate === null && !knownRegistries.includes(c.registry)).length
|
||||
|
||||
return (
|
||||
<div className="card">
|
||||
@@ -58,7 +59,7 @@ export function DockerUpdatesWidget() {
|
||||
{c.image}:{c.tag.startsWith('sha256:') ? c.tag.slice(0, 15) + '…' : c.tag} · {c.endpoint}
|
||||
</span>
|
||||
</div>
|
||||
{c.upToDate === null && c.registry !== 'docker.io' && c.registry !== 'ghcr.io' ? (
|
||||
{c.upToDate === null && !knownRegistries.includes(c.registry) ? (
|
||||
<span className="pill pill-blue">ext</span>
|
||||
) : c.upToDate === true ? (
|
||||
<span className="pill pill-green">✓</span>
|
||||
|
||||
Reference in New Issue
Block a user