From dd13daeb605819c1f15713d05adeea5f4435caff Mon Sep 17 00:00:00 2001 From: Debora Crescenzo Date: Wed, 13 Nov 2024 14:36:42 +0000 Subject: [PATCH] MT#61314 Change call recordings DELETE The backend has been amended so that when a call is recorded on both sides (caller and callee), if one of the two sides deletes the recording, the item is only removed from their view and the other party can still see the recording. To achieve this we add a param subscriber_id into the delete request. As well this commit fixes the pop-up appearing to confirm the user wants to proceed with deletion. The pop-up was appearing without title and message, now both are shown. Change-Id: I7808fd3fad819e3e194448d16e882502f0a29bc6 (cherry picked from commit c64a0620c4ed32dcf80e081566fb50a17b87b863) (cherry picked from commit 9c3762273afe82107a90f05056f3e3e5c77e984d) --- src/pages/CscPageCallRecording.vue | 7 ++++--- src/store/call-recordings.js | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/pages/CscPageCallRecording.vue b/src/pages/CscPageCallRecording.vue index 93f25933..a9f24e67 100644 --- a/src/pages/CscPageCallRecording.vue +++ b/src/pages/CscPageCallRecording.vue @@ -344,9 +344,10 @@ export default { confirmRowDeletion (rowId) { this.$q.dialog({ component: CscRemoveDialog, - parent: this, - title: this.$t('Delete recording'), - message: this.$t('You are about to delete recording #{id}', { id: rowId }) + componentProps: { + title: this.$t('Delete recording'), + message: this.$t('You are about to delete recording #{id}', { id: rowId }) + } }).onOk(() => { this.deleteRecord(rowId) }) diff --git a/src/store/call-recordings.js b/src/store/call-recordings.js index 2d3a0c47..64c83305 100644 --- a/src/store/call-recordings.js +++ b/src/store/call-recordings.js @@ -66,7 +66,7 @@ export default { }) }, async deleteRecording (context, recId) { - await httpApi.delete('api/callrecordings/' + recId + '?force_delete=1') + await httpApi.delete(`api/callrecordings/${recId}?subscriber_id=${context.getters.subscriberId}&force_delete=1`) }, async downloadRecording (context, fileId) { const fileBody = await downloadRecordingStream(fileId)