fix(): Use captions.dication flag to show/hide dication button
This commit is contained in:
parent
8d741fa016
commit
a744193536
@ -92,7 +92,8 @@ const Captions = ({
|
||||
'aria-label': intl.formatMessage(intlMessages.hide),
|
||||
label: autoTranscription ? intl.formatMessage(intlMessages.title) : name,
|
||||
}}
|
||||
customRightButton={Service.amICaptionsOwner(ownerId) ? (
|
||||
customRightButton={dictation ? (
|
||||
Service.amICaptionsOwner(ownerId) ? (
|
||||
<span>
|
||||
<Button
|
||||
onClick={dictating
|
||||
@ -103,7 +104,6 @@ const Captions = ({
|
||||
: intl.formatMessage(intlMessages.dictationStart)}
|
||||
aria-describedby="dictationBtnDesc"
|
||||
color={dictating ? 'danger' : 'primary'}
|
||||
disabled={!dictation}
|
||||
/>
|
||||
<div id="dictationBtnDesc" hidden>
|
||||
{dictating
|
||||
@ -119,7 +119,7 @@ const Captions = ({
|
||||
aria-label={intl.formatMessage(intlMessages.takeOwnership)}
|
||||
label={intl.formatMessage(intlMessages.takeOwnership)}
|
||||
/>
|
||||
)}
|
||||
)) : null}
|
||||
/>
|
||||
<PadContainer
|
||||
externalId={locale}
|
||||
|
Loading…
Reference in New Issue
Block a user