change(ui) - enable annotation without call

This commit is contained in:
Shekar Siri 2022-05-18 15:49:58 +02:00
parent bd6dba4781
commit 437341257c
2 changed files with 14 additions and 18 deletions

View file

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

View file

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