From c5596ebf2b1189bbc2981ac4eefac036bb73e336 Mon Sep 17 00:00:00 2001 From: kartikvirendrar Date: Wed, 10 Jan 2024 14:34:32 +0530 Subject: [PATCH 01/12] remove right click options for audio panel --- src/ui/pages/container/CL-Transcription/AudioPanel.jsx | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/ui/pages/container/CL-Transcription/AudioPanel.jsx b/src/ui/pages/container/CL-Transcription/AudioPanel.jsx index 91b19fd08..99f60dc3a 100644 --- a/src/ui/pages/container/CL-Transcription/AudioPanel.jsx +++ b/src/ui/pages/container/CL-Transcription/AudioPanel.jsx @@ -51,11 +51,20 @@ const AudioPanel = memo( ({ // }, [$video]); //console.log(TaskDetails?.data?.audio_url,"TaskDetailsTaskDetailsTaskDetails") + + useEffect(() => { + const audio = document.getElementById('audio-panel'); + audio.oncontextmenu = function (e) { + e.preventDefault(); + }; + }, []) + return ( {/*
*/}