From 24ea53bd2f98254424dee463f535e86a81ed1a8d Mon Sep 17 00:00:00 2001 From: kikootwo Date: Wed, 7 Jan 2026 10:31:57 -0500 Subject: [PATCH] Improve SABnzbd API key handling and settings UI Clear credentials when switching download client types in the admin settings page and update validation logic for enabling the test connection button. In SABnzbd service, trim API key input and add explicit validation and error handling for missing or invalid API keys during connection tests. --- src/app/admin/settings/page.tsx | 14 ++++++++-- src/lib/integrations/sabnzbd.service.ts | 36 ++++++++++++++++++++++++- 2 files changed, 47 insertions(+), 3 deletions(-) diff --git a/src/app/admin/settings/page.tsx b/src/app/admin/settings/page.tsx index 9460e5e..d695c4a 100644 --- a/src/app/admin/settings/page.tsx +++ b/src/app/admin/settings/page.tsx @@ -1532,9 +1532,15 @@ export default function AdminSettings() {