change(ui) - enable annotation without call
This commit is contained in:
parent
bd6dba4781
commit
437341257c
2 changed files with 14 additions and 18 deletions
|
|
@ -82,23 +82,19 @@ function AssistActions({ toggleChatWindow, userId, calling, annotating, peerConn
|
|||
|
||||
return (
|
||||
<div className="flex items-center">
|
||||
{onCall && (
|
||||
<>
|
||||
<div
|
||||
className={
|
||||
cn(
|
||||
'cursor-pointer p-2 flex items-center',
|
||||
{[stl.disabled]: !onCall}
|
||||
)
|
||||
}
|
||||
onClick={ toggleAnnotation }
|
||||
role="button"
|
||||
>
|
||||
<IconButton label={`Annotate`} icon={ annotating ? "pencil-stop" : "pencil"} primaryText redText={annotating} />
|
||||
</div>
|
||||
<div className={ stl.divider } />
|
||||
</>
|
||||
)}
|
||||
<div
|
||||
className={
|
||||
cn(
|
||||
'cursor-pointer p-2 flex items-center',
|
||||
{[stl.disabled]: cannotCall}
|
||||
)
|
||||
}
|
||||
onClick={ toggleAnnotation }
|
||||
role="button"
|
||||
>
|
||||
<IconButton label={`Annotate`} icon={ annotating ? "pencil-stop" : "pencil"} primaryText redText={annotating} />
|
||||
</div>
|
||||
<div className={ stl.divider } />
|
||||
<div
|
||||
className={
|
||||
cn(
|
||||
|
|
|
|||
|
|
@ -385,7 +385,7 @@ export default class AssistManager {
|
|||
}
|
||||
|
||||
toggleAnnotation(enable?: boolean) {
|
||||
if (getState().calling !== CallingState.OnCall) { return }
|
||||
// if (getState().calling !== CallingState.OnCall) { return }
|
||||
if (typeof enable !== "boolean") {
|
||||
enable = !!getState().annotating
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue