Fix - 305 - Add default text to SHARE feature
This commit is contained in:
parent
239d08ad27
commit
19a67e6473
1 changed files with 8 additions and 7 deletions
|
|
@ -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);
|
||||
});
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue