mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2026-01-09 06:49:02 +08:00
parent
44f7fa09e0
commit
463cdda25d
@ -198,7 +198,11 @@ const ProviderSetting: FC<Props> = ({ provider: _provider }) => {
|
|||||||
type="password"
|
type="password"
|
||||||
autoFocus={provider.enabled && apiKey === ''}
|
autoFocus={provider.enabled && apiKey === ''}
|
||||||
/>
|
/>
|
||||||
<Button type={apiValid ? 'primary' : 'default'} ghost={apiValid} onClick={onCheckApi} disabled={!apiHost}>
|
<Button
|
||||||
|
type={apiValid ? 'primary' : 'default'}
|
||||||
|
ghost={apiValid}
|
||||||
|
onClick={onCheckApi}
|
||||||
|
disabled={!apiHost || apiChecking}>
|
||||||
{apiChecking ? <LoadingOutlined spin /> : apiValid ? <CheckOutlined /> : t('settings.provider.check')}
|
{apiChecking ? <LoadingOutlined spin /> : apiValid ? <CheckOutlined /> : t('settings.provider.check')}
|
||||||
</Button>
|
</Button>
|
||||||
</Space.Compact>
|
</Space.Compact>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user