Share address button for mobile

This commit is contained in:
Gustavo Maximiliano Cortez 2015-01-27 11:52:16 -03:00
commit 3ab53e5abf
3 changed files with 16 additions and 0 deletions

View file

@ -17,9 +17,16 @@ angular.module('copayApp.controllers').controller('ReceiveController',
}
};
$scope.shareAddress = function(addr) {
if (isCordova) {
window.plugins.socialsharing.share('My bitcoin address: ' + addr);
}
};
$scope.init = function() {
$rootScope.title = 'Receive';
$scope.showAll = false;
$scope.isCordova = isCordova;
var w = $rootScope.wallet;
var lastAddr = _.first(w.getAddressesOrdered());