diff --git a/.gitignore b/.gitignore
index 6875b75c..8fe3ba69 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,5 +1,6 @@
.DS_Store
.thumbs.db
+.vscode
node_modules/
dist/
npm-debug.log*
diff --git a/src/api/conversations.js b/src/api/conversations.js
index ab29cb23..1ce448f9 100644
--- a/src/api/conversations.js
+++ b/src/api/conversations.js
@@ -18,9 +18,6 @@ export function getConversations(id, page, rows) {
let inputString = `${item.type}${item.call_type}${item.id}`;
let id = crypto.createHash('sha256').update(inputString).digest('base64');
item._id = id;
- if (item._links['ngcp:voicemailrecordings']) {
- item.voicemail = item._links['ngcp:voicemailrecordings'].href;
- }
delete item._links;
if (item.type == 'call') {
item.type = item.call_type != 'call' ? 'callforward'
@@ -39,7 +36,6 @@ export function getConversations(id, page, rows) {
});
}
-
export function downloadVoiceMail(id) {
return new Promise((resolve, reject)=>{
Vue.http.get('/api/voicemailrecordings/' + id, { responseType: 'blob' })
@@ -54,6 +50,20 @@ export function downloadVoiceMail(id) {
});
}
+export function downloadFax(id) {
+ return new Promise((resolve, reject)=>{
+ Vue.http.get('/api/faxrecordings/' + id, { responseType: 'blob' })
+ .then(res => {
+ return res.blob();
+ }).then(fax => {
+ saveAs(fax, "fax-" + id + '.tif');
+ resolve();
+ }).catch((err)=>{
+ reject(err);
+ });
+ });
+}
+
diff --git a/src/components/CscConversation.vue b/src/components/CscConversation.vue
index 30ba056c..f1938d8b 100644
--- a/src/components/CscConversation.vue
+++ b/src/components/CscConversation.vue
@@ -50,7 +50,7 @@
{{ $t('pages.conversations.buttons.videoCall') }}
-
+