From 482a87f705fd3d2026909f71c6508ea4e3d66f7c Mon Sep 17 00:00:00 2001 From: sylenien Date: Wed, 31 Aug 2022 10:46:19 +0200 Subject: [PATCH] fix(ui): disable annotations and remote control when looking at past activity --- .../Assist/components/AssistActions/AssistActions.tsx | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/frontend/app/components/Assist/components/AssistActions/AssistActions.tsx b/frontend/app/components/Assist/components/AssistActions/AssistActions.tsx index 2ebd3562a..0b654dd3c 100644 --- a/frontend/app/components/Assist/components/AssistActions/AssistActions.tsx +++ b/frontend/app/components/Assist/components/AssistActions/AssistActions.tsx @@ -33,6 +33,7 @@ interface Props { isEnterprise: boolean; isCallActive: boolean; agentIds: string[]; + livePlay: boolean; } function AssistActions({ @@ -44,7 +45,8 @@ function AssistActions({ hasPermission, isEnterprise, isCallActive, - agentIds + agentIds, + livePlay }: Props) { const [isPrestart, setPrestart] = useState(false); const [incomeStream, setIncomeStream] = useState([]); @@ -115,7 +117,7 @@ function AssistActions({ {(onCall || remoteActive) && ( <>
toggleAnnotation(!annotating)} role="button" > @@ -132,7 +134,7 @@ function AssistActions({ )}
@@ -186,5 +188,6 @@ export default con( annotating: state.annotating, remoteControlStatus: state.remoteControl, peerConnectionStatus: state.peerConnectionStatus, + livePlay: state.livePlay, }))(AssistActions) );