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
mr13.1
Debora Crescenzo 6 months ago committed by Crescenzo Debora
parent 499e89ac44
commit c64a0620c4

@ -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)
})

@ -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)

Loading…
Cancel
Save