This commit is contained in:
Timothy Jaeryang Baek 2026-10-08 16:52:28 +04:00
parent 917f2fd1de
commit 8f11fda874

View file

@ -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
/>
<Tooltip content={verifyLabel()} className="shrink-0 flex items-center mr-1">
<Tooltip content={verifyLabel} className="shrink-0 flex items-center mr-1">
<button
class="self-center p-1 bg-transparent hover:bg-gray-100 dark:hover:bg-gray-850 rounded-lg transition"
on:click={() => {
verifyHandler();
}}
aria-label={verifyLabel()}
aria-label={verifyLabel}
type="button"
>
<svg