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)