From e17d0da2c38202337316118b6ba487f630850268 Mon Sep 17 00:00:00 2001 From: qwerty287 <80460567+qwerty287@users.noreply.github.com> Date: Mon, 7 Aug 2023 13:19:51 +0200 Subject: [PATCH] Don't show badge without information (#2130) Was requested [here](https://github.com/woodpecker-ci/woodpecker/issues/1314#issuecomment-1477858832) for queue, but this also applies to agents: Do not show badges that only show `???` because they don't provide any useful information. --- web/src/components/admin/settings/AdminAgentsTab.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/web/src/components/admin/settings/AdminAgentsTab.vue b/web/src/components/admin/settings/AdminAgentsTab.vue index ac94261d2..5115cf945 100644 --- a/web/src/components/admin/settings/AdminAgentsTab.vue +++ b/web/src/components/admin/settings/AdminAgentsTab.vue @@ -24,9 +24,9 @@ {{ agent.name || `Agent ${agent.id}` }} {{ agent.last_contact ? timeAgo.format(agent.last_contact * 1000) : 'never' }}