change(ui) - annotation with call or remote

This commit is contained in:
Shekar Siri 2022-05-19 12:31:37 +02:00
parent 01843b7805
commit fa4d2efc17
2 changed files with 4 additions and 4 deletions

View file

@ -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} />

View file

@ -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
}