mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-16 11:57:51 +01:00
refac: swtich
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user