change(ui) - annotation with call or remote
This commit is contained in:
parent
01843b7805
commit
fa4d2efc17
2 changed files with 4 additions and 4 deletions
|
|
@ -82,16 +82,16 @@ function AssistActions({ toggleChatWindow, userId, calling, annotating, peerConn
|
|||
|
||||
return (
|
||||
<div className="flex items-center">
|
||||
{onCall && (
|
||||
{(onCall || remoteActive) && (
|
||||
<>
|
||||
<div
|
||||
className={
|
||||
cn(
|
||||
'cursor-pointer p-2 flex items-center',
|
||||
{[stl.disabled]: !onCall}
|
||||
// {[stl.disabled]: cannotCall}
|
||||
)
|
||||
}
|
||||
onClick={ toggleAnnotation }
|
||||
onClick={ () => toggleAnnotation(!annotating) }
|
||||
role="button"
|
||||
>
|
||||
<IconButton label={`Annotate`} icon={ annotating ? "pencil-stop" : "pencil"} primaryText redText={annotating} />
|
||||
|
|
|
|||
|
|
@ -386,7 +386,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