From aceca70ae895ff6c4980224e84b014e7dc381180 Mon Sep 17 00:00:00 2001 From: Flaminel Date: Fri, 20 Mar 2026 01:51:15 +0200 Subject: [PATCH] changed Radarr instance badge color --- .../src/app/features/search-stats/search-stats.component.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/code/frontend/src/app/features/search-stats/search-stats.component.ts b/code/frontend/src/app/features/search-stats/search-stats.component.ts index e9821b1d..2769ff0e 100644 --- a/code/frontend/src/app/features/search-stats/search-stats.component.ts +++ b/code/frontend/src/app/features/search-stats/search-stats.component.ts @@ -143,8 +143,10 @@ export class SearchStatsComponent implements OnInit, OnDestroy { return type === SeekerSearchType.Replacement ? 'warning' : 'info'; } - instanceTypeSeverity(type: string): 'info' | 'default' { - return type === 'Radarr' || type === 'Sonarr' ? 'info' : 'default'; + instanceTypeSeverity(type: string): BadgeSeverity { + if (type === 'Radarr') return 'warning'; + if (type === 'Sonarr') return 'info'; + return 'default'; } itemDisplayName(item: { itemTitle: string; externalItemId: number }): string {