mirror of
https://github.com/open-webui/open-webui.git
synced 2026-10-07 02:58:21 +00:00
fix: apply the Voice mode button's checks when Voice Mode is opened from the URL (#31826)
This commit is contained in:
parent
51da3eefc9
commit
79baaca3bb
1 changed files with 14 additions and 0 deletions
|
|
@ -2060,6 +2060,20 @@
|
|||
//////////////////////////
|
||||
|
||||
const openCallOverlay = () => {
|
||||
if (!($user?.role === 'admin' || ($user?.permissions?.chat?.call ?? true))) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (selectedModels.length > 1) {
|
||||
toast.error($i18n.t('Select only one model to call'));
|
||||
return;
|
||||
}
|
||||
|
||||
if ($config.audio.stt.engine === 'web') {
|
||||
toast.error($i18n.t('Call feature is not supported when using Web STT engine'));
|
||||
return;
|
||||
}
|
||||
|
||||
setTimeout(() => {
|
||||
showCallOverlay.set(true);
|
||||
showControls.set(true);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue