From 8f11fda8742b5159f0b82aed9931ce8061fed204 Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Thu, 8 Oct 2026 16:52:28 +0400 Subject: [PATCH] refac --- src/lib/components/AddToolServerModal.svelte | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/lib/components/AddToolServerModal.svelte b/src/lib/components/AddToolServerModal.svelte index 90165eadf3..2fe7be9ff8 100644 --- a/src/lib/components/AddToolServerModal.svelte +++ b/src/lib/components/AddToolServerModal.svelte @@ -80,10 +80,9 @@ const selectClass = 'bg-transparent pr-5 outline-hidden placeholder:text-gray-300 dark:placeholder:text-gray-700'; const oauthAuthTypes = ['oauth_2.1', 'oauth_2.1_static']; - const verifyLabel = () => - oauthAuthTypes.includes(auth_type) - ? $i18n.t('Check OAuth Discovery') - : $i18n.t('Verify Connection'); + $: verifyLabel = oauthAuthTypes.includes(auth_type) + ? $i18n.t('Check OAuth Discovery') + : $i18n.t('Verify Connection'); const verifySuccessMessage = () => oauthAuthTypes.includes(auth_type) ? $i18n.t('OAuth discovery successful') @@ -686,13 +685,13 @@ required /> - +