fix(ui): disable annotations and remote control when looking at past activity
This commit is contained in:
parent
482a87f705
commit
acb608dd32
1 changed files with 11 additions and 0 deletions
|
|
@ -112,6 +112,17 @@ function AssistActions({
|
|||
}
|
||||
};
|
||||
|
||||
React.useEffect(() => {
|
||||
if (!livePlay) {
|
||||
if (annotating) {
|
||||
toggleAnnotation(false);
|
||||
}
|
||||
if (remoteActive) {
|
||||
requestReleaseRemoteControl()
|
||||
}
|
||||
}
|
||||
}, [livePlay])
|
||||
|
||||
return (
|
||||
<div className="flex items-center">
|
||||
{(onCall || remoteActive) && (
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue