mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-07 03:18:23 -05:00
refac
This commit is contained in:
@@ -202,7 +202,7 @@
|
||||
const stopAudio = () => {
|
||||
try {
|
||||
speechSynthesis.cancel();
|
||||
$audioQueue.stop();
|
||||
$audioQueue?.stop();
|
||||
} catch {}
|
||||
|
||||
if (speaking) {
|
||||
@@ -1015,7 +1015,7 @@
|
||||
</button>
|
||||
</Tooltip>
|
||||
|
||||
{#if $user?.role === 'admin' || ($user?.permissions?.chat?.tts ?? true)}
|
||||
{#if !readOnly && ($user?.role === 'admin' || ($user?.permissions?.chat?.tts ?? true))}
|
||||
<Tooltip content={$i18n.t('Read Aloud')} placement="bottom">
|
||||
<button
|
||||
aria-label={$i18n.t('Read Aloud')}
|
||||
|
||||
Reference in New Issue
Block a user