From acb608dd320bdb9c72d5dcf9c33c3974db541db1 Mon Sep 17 00:00:00 2001 From: sylenien Date: Wed, 31 Aug 2022 10:49:38 +0200 Subject: [PATCH] fix(ui): disable annotations and remote control when looking at past activity --- .../Assist/components/AssistActions/AssistActions.tsx | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/frontend/app/components/Assist/components/AssistActions/AssistActions.tsx b/frontend/app/components/Assist/components/AssistActions/AssistActions.tsx index 0b654dd3c..948b86967 100644 --- a/frontend/app/components/Assist/components/AssistActions/AssistActions.tsx +++ b/frontend/app/components/Assist/components/AssistActions/AssistActions.tsx @@ -112,6 +112,17 @@ function AssistActions({ } }; + React.useEffect(() => { + if (!livePlay) { + if (annotating) { + toggleAnnotation(false); + } + if (remoteActive) { + requestReleaseRemoteControl() + } + } + }, [livePlay]) + return (
{(onCall || remoteActive) && (