From 19a67e6473967b33d8944efca6bf19caaa646f87 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Dominguez Date: Fri, 4 May 2018 13:01:30 +0900 Subject: [PATCH] Fix - 305 - Add default text to SHARE feature --- src/js/controllers/feedback/complete.js | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/src/js/controllers/feedback/complete.js b/src/js/controllers/feedback/complete.js index ec38055e2..3093caf43 100644 --- a/src/js/controllers/feedback/complete.js +++ b/src/js/controllers/feedback/complete.js @@ -7,7 +7,8 @@ angular.module('copayApp.controllers').controller('completeController', function }); var defaults = configService.getDefaults(); - var downloadUrl = appConfigService.name == 'copay' ? defaults.download.copay.url : defaults.download.bitpay.url; + var content = appConfigService.name == 'copay' ? defaults.download.copay.url : defaults.download.bitpay.url; + content = 'I love the Bitcoin.com Wallet App! Get yours today! ' + content; function quickFeedback(cb) { window.plugins.spinnerDialog.show(); @@ -17,37 +18,37 @@ angular.module('copayApp.controllers').controller('completeController', function $scope.shareFacebook = function() { quickFeedback(function() { - window.plugins.socialsharing.shareVia($scope.shareFacebookVia, null, null, null, downloadUrl); + window.plugins.socialsharing.shareVia($scope.shareFacebookVia, null, null, null, content); }); }; $scope.shareTwitter = function() { quickFeedback(function() { - window.plugins.socialsharing.shareVia($scope.shareTwitterVia, null, null, null, downloadUrl); + window.plugins.socialsharing.shareVia($scope.shareTwitterVia, null, null, null, content); }); }; $scope.shareGooglePlus = function() { quickFeedback(function() { - window.plugins.socialsharing.shareVia($scope.shareGooglePlusVia, downloadUrl); + window.plugins.socialsharing.shareVia($scope.shareGooglePlusVia, content); }); }; $scope.shareEmail = function() { quickFeedback(function() { - window.plugins.socialsharing.shareViaEmail(downloadUrl); + window.plugins.socialsharing.shareViaEmail(content); }); }; $scope.shareWhatsapp = function() { quickFeedback(function() { - window.plugins.socialsharing.shareViaWhatsApp(downloadUrl); + window.plugins.socialsharing.shareViaWhatsApp(content); }); }; $scope.shareMessage = function() { quickFeedback(function() { - window.plugins.socialsharing.shareViaSMS(downloadUrl); + window.plugins.socialsharing.shareViaSMS(content); }); };