Copy address to clipboad on mobile

This commit is contained in:
Gustavo Maximiliano Cortez 2015-04-27 02:31:07 -03:00
commit 7bc284c0fd
No known key found for this signature in database
GPG key ID: 15EDAD8D9F2EB1AF
3 changed files with 13 additions and 3 deletions

View file

@ -248,6 +248,11 @@ angular.module('copayApp.controllers').controller('walletHomeController', functi
}, 100);
};
$scope.copyAddress = function(addr) {
if (!addr) return;
self.copyAddress(addr);
};
$scope.cancel = function() {
$modalInstance.dismiss('cancel');
};
@ -753,6 +758,11 @@ angular.module('copayApp.controllers').controller('walletHomeController', functi
return n.substring(0, 4);
};
$scope.copyAddress = function(addr) {
if (!addr) return;
self.copyAddress(addr);
};
$scope.cancel = function() {
$modalInstance.dismiss('cancel');
};