mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-14 21:35:19 +00:00
refac: swtich
This commit is contained in:
parent
ed6449d35f
commit
54c05ac6e0
1 changed files with 7 additions and 1 deletions
|
|
@ -15,7 +15,13 @@
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<Tooltip
|
<Tooltip
|
||||||
content={tooltip ? (state ? $i18n.t('Enabled') : $i18n.t('Disabled')) : ''}
|
content={typeof tooltip === 'string'
|
||||||
|
? tooltip
|
||||||
|
: typeof tooltip === 'boolean' && tooltip
|
||||||
|
? state
|
||||||
|
? $i18n.t('Enabled')
|
||||||
|
: $i18n.t('Disabled')
|
||||||
|
: ''}
|
||||||
placement="top"
|
placement="top"
|
||||||
>
|
>
|
||||||
<Switch.Root
|
<Switch.Root
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue