From c192a17090fd3f5d66fe11744a0e92297a6e9514 Mon Sep 17 00:00:00 2001 From: Jean-Roch Maitre Date: Thu, 21 Jul 2016 11:18:43 -0700 Subject: [PATCH] UI-2144: re-send button added, will work once back-end pr is merged --- app.js | 7 ++++--- views/outbound-faxes.html | 4 ++-- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/app.js b/app.js index 1c59b7d..dcb6cc6 100644 --- a/app.js +++ b/app.js @@ -536,14 +536,15 @@ define(function(require){ var self = this; self.getFaxDetails('outbound', faxId, function(fax) { - fax.attempts = 0; - self.callApi({ resource: 'faxes.updateOutbound', data: { accountId: self.accountId, faxId: faxId, - data: fax + data: fax, + envelopeKeys: { + action: 'resubmit' + } }, success: function(data) { callback && callback(data.data); diff --git a/views/outbound-faxes.html b/views/outbound-faxes.html index 0289a61..3dfe933 100644 --- a/views/outbound-faxes.html +++ b/views/outbound-faxes.html @@ -23,9 +23,9 @@ - +