From e82fea8d3d592b1874726d974366d3d9664d4fda Mon Sep 17 00:00:00 2001 From: Seth Call Date: Fri, 13 Jun 2025 07:28:29 -0500 Subject: [PATCH] Deactivate web/video setting for now --- .../SessionRecordingSettings.js.jsx.coffee | 12 +++++++++--- .../react-components/SessionScreen.js.jsx.coffee | 7 +++++-- 2 files changed, 14 insertions(+), 5 deletions(-) diff --git a/web/app/assets/javascripts/react-components/SessionRecordingSettings.js.jsx.coffee b/web/app/assets/javascripts/react-components/SessionRecordingSettings.js.jsx.coffee index 19e6ff13a..ab929ef1c 100644 --- a/web/app/assets/javascripts/react-components/SessionRecordingSettings.js.jsx.coffee +++ b/web/app/assets/javascripts/react-components/SessionRecordingSettings.js.jsx.coffee @@ -12,11 +12,13 @@ mixins.push(Reflux.listenTo(RecordingStore, "onRecordingStateChanged")) onExternalVideoStateChanged: (videoState) -> console.log('_REC_ onExternalVideoStateChanged', videoState); $root = $(this.getDOMNode()) + console.log("recording videoEnabled", videoState.videoEnabled) if videoState.videoEnabled $root.find('#recording-input-both').attr('disabled', false).iCheck('update').iCheck('uncheck') + $root.find('#recording-input-audio').attr('disabled',false) else - $root.find('#recording-input-both').prop('disabled',true).iCheck('update').iCheck('uncheck'); - $root.find('#recording-input-audio').attr('checked', true).iCheck('update').iCheck('check') + $root.find('#recording-input-both').attr('disabled',true).iCheck('update').iCheck('uncheck'); + $root.find('#recording-input-audio').attr('disabled',true).attr('checked', true).iCheck('update').iCheck('check') # onRecordingStateChanged: (recordingState) -> # if recordingState.audioRecordingFormat @@ -90,6 +92,8 @@ mixins.push(Reflux.listenTo(RecordingStore, "onRecordingStateChanged")) setRecordingTypeChange: `async function(e) { const recordType = e.target.value; + console.log("setRecordingTypeChange", recordType) + const $root = $(this.getDOMNode()); const $recordTypeAudio = $root.find('#recording-input-audio'); const $recordTypeBoth = $root.find('#recording-input-both'); @@ -353,13 +357,15 @@ mixins.push(Reflux.listenTo(RecordingStore, "onRecordingStateChanged")) context.JK.checkbox($inputRecordStoreTypeMix); //only enable audio & video radio button if a video is ongoing + console.log("context.JK.videoIsOngoing", context.JK.videoIsOngoing) if (!context.JK.videoIsOngoing) { this.setState({recordingType: context.JK.RECORD_TYPE_AUDIO}); - $inputAudioRadioBtn.attr('checked', true).iCheck('update').iCheck('check'); + $inputAudioRadioBtn.attr('checked', true).attr('disabled', true).iCheck('update').iCheck('check') $inputBothRadioBtn.attr('disabled',true).iCheck('update').iCheck('uncheck'); this.toggleDisableVideoContrls(true); } else { $inputBothRadioBtn.attr('disabled', false).iCheck('update'); + $inputAudioRadioBtn.attr('disabled', false) if (this.state.recordingType === context.JK.RECORD_TYPE_BOTH) { $inputBothRadioBtn.attr('checked', true).iCheck('update').iCheck('check'); this.toggleDisableVideoContrls(false); diff --git a/web/app/assets/javascripts/react-components/SessionScreen.js.jsx.coffee b/web/app/assets/javascripts/react-components/SessionScreen.js.jsx.coffee index e16627daf..d21a2af7b 100644 --- a/web/app/assets/javascripts/react-components/SessionScreen.js.jsx.coffee +++ b/web/app/assets/javascripts/react-components/SessionScreen.js.jsx.coffee @@ -21,7 +21,10 @@ SessionActions = @SessionActions videoBtn = `` filesBtn = `` - + recordingStatus = null + console.log("gon.show_recording_debug_status", gon.show_recording_debug_status) + if gon.show_recording_debug_status + recordingStatus = `` `
@@ -38,7 +41,7 @@ SessionActions = @SessionActions - + {recordingStatus}
`