diff --git a/frontend/src/routes/+page.svelte b/frontend/src/routes/+page.svelte
index 9c130e3..ac6b05d 100644
--- a/frontend/src/routes/+page.svelte
+++ b/frontend/src/routes/+page.svelte
@@ -177,12 +177,12 @@
let displayCommandTrackers = $state(0);
- const filteredProvider = $derived(globalProviderFilter.id ? providers.find(p => p.id === globalProviderFilter.id) : null);
+ const filteredProviderCount = $derived(globalProviderFilter.providerType
+ ? providers.filter(p => p.type === globalProviderFilter.providerType).length
+ : displayProviders);
const statCards = $derived(status ? [
- filteredProvider
- ? { icon: providerDefaultIcon(filteredProvider), label: filteredProvider.name, value: filteredProvider.type, color: '#0d9488', isProvider: true }
- : { icon: 'mdiServer', label: 'dashboard.providers', value: displayProviders, color: '#0d9488' },
+ { icon: 'mdiServer', label: 'dashboard.providers', value: filteredProviderCount, color: '#0d9488' },
{ icon: 'mdiRadar', label: 'dashboard.activeTrackers', value: displayActive, suffix: ` / ${displayTotal}`, color: '#6366f1' },
{ icon: 'mdiTarget', label: 'dashboard.targets', value: displayTargets, color: '#f59e0b' },
...(status.command_trackers !== undefined ? [{ icon: 'mdiConsoleLine', label: 'nav.commandTrackers', value: displayCommandTrackers, color: '#8b5cf6' }] : []),
@@ -238,14 +238,10 @@
{card.isProvider ? card.label : t(card.label)}
- {#if card.isProvider} -{card.value}
- {:else} -- {card.value}{#if card.suffix}{card.suffix}{/if} -
- {/if} +{t(card.label)}
++ {card.value}{#if card.suffix}{card.suffix}{/if} +