From b3a5d14367809bd15f5c79dc271fd30d22227cea Mon Sep 17 00:00:00 2001 From: Nirvana Date: Sun, 21 Dec 2025 14:28:15 +0100 Subject: [PATCH] Add web config --- resources/web/config.js | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/resources/web/config.js b/resources/web/config.js index b4188fc..bb3687a 100644 --- a/resources/web/config.js +++ b/resources/web/config.js @@ -237,7 +237,6 @@ async function renderCredentialsForms() { // Get auth information from provider const auth = provider.auth || {}; - const supportedAuthTypes = auth.supported_auth_types || []; // Determine UI based on auth properties const needsUserCredentials = auth.needs_user_credentials || false; @@ -324,9 +323,6 @@ async function renderCredentialsForms() { Authentication Type Unknown

This provider's authentication method could not be determined.

- ${supportedAuthTypes.length > 0 ? ` - Supported auth types: ${supportedAuthTypes.join(', ')} - ` : ''} `; } @@ -389,8 +385,21 @@ async function renderCredentialsForms() { }); // Wait for all promises and render - const htmls = await Promise.all(credentialsPromises); - credentialsContainer.innerHTML = htmls.join(''); + try { + const htmls = await Promise.all(credentialsPromises); + credentialsContainer.innerHTML = htmls.join(''); + } catch (error) { + console.error('Error rendering credentials forms:', error); + credentialsContainer.innerHTML = ` +
+ +
+ Failed to render credentials +

${error.message}

+
+
+ `; + } } // Load proxy forms