From c291f5a8e6c2b92e901c779c1378d266dea2861a Mon Sep 17 00:00:00 2001 From: Maksim Sukharev Date: Wed, 4 Dec 2024 11:14:57 +0100 Subject: [PATCH] fix(AdminSettings): provide call recording config toggles Signed-off-by: Maksim Sukharev --- .../AdminSettings/RecordingServers.vue | 40 +++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/src/components/AdminSettings/RecordingServers.vue b/src/components/AdminSettings/RecordingServers.vue index f5d7b8d1e7b..364169dfa14 100644 --- a/src/components/AdminSettings/RecordingServers.vue +++ b/src/components/AdminSettings/RecordingServers.vue @@ -72,6 +72,26 @@

+ + @@ -134,6 +154,8 @@ export default { saved: false, showForm: true, recordingConsentSelected: loadState('spreed', 'recording_consent').toString(), + recordingTranscriptionEnabled: loadState('spreed', 'call_recording_transcription'), + recordingSummaryEnabled: loadState('spreed', 'call_recording_summary'), debounceUpdateServers: () => {}, } }, @@ -212,6 +234,24 @@ export default { }) }, + setRecordingTranscription(value) { + this.loading = true + OCP.AppConfig.setValue('spreed', 'call_recording_transcription', value ? 'yes' : 'no', { + success: () => { + this.loading = false + }, + }) + }, + + setRecordingSummary(value) { + this.loading = true + OCP.AppConfig.setValue('spreed', 'call_recording_summary', value ? 'yes' : 'no', { + success: () => { + this.loading = false + }, + }) + }, + getRecordingConsentDescription(value) { switch (value) { case CONFIG.RECORDING_CONSENT.OPTIONAL: