From 92c0b69d35b92db0d9e7c21d51866038627d37a6 Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Thu, 7 Aug 2014 11:29:09 -0700 Subject: [PATCH] paypro: add more notifications. --- js/directives.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/js/directives.js b/js/directives.js index 4d99e4d38..72e9829c5 100644 --- a/js/directives.js +++ b/js/directives.js @@ -27,6 +27,9 @@ angular.module('copayApp.directives') return value; } + notification.info('Fetching Payment', + 'Retrieving Payment Request from ' + uri.merchant); + // Payment Protocol URI (BIP-72) scope.wallet.fetchPaymentTx(uri.merchant, function(err, merchantData) { var balance = $rootScope.availableBalance; @@ -51,6 +54,10 @@ angular.module('copayApp.directives') // XXX There needs to be a better way to do this: total = +total / config.unitToSatoshi; + notification.info('Payment Request', + 'Server is requesting ' + total + ' ' + config.unitName + '.\n' + + 'Message: ' + memo); + // XXX Pretty much all of this code accesses the raw DOM. It's // very bad, there's probably a better, more angular-y way to // do things here.