fix(ui): disable annotations and remote control when looking at past activity

This commit is contained in:
sylenien 2022-08-31 10:49:38 +02:00
parent 482a87f705
commit acb608dd32

View file

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