mirror of
https://github.com/open-webui/open-webui.git
synced 2026-10-10 03:27:57 +00:00
refac
This commit is contained in:
parent
917f2fd1de
commit
8f11fda874
1 changed files with 5 additions and 6 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue