Merge pull request #1082 from yemel/feature/mobile-clipboard

Feature/mobile clipboard
This commit is contained in:
Matias Alejo Garcia 2014-08-15 16:06:31 -04:00
commit 352185e66c
9 changed files with 291 additions and 1 deletions

View file

@ -19,6 +19,12 @@ angular.module('copayApp.controllers').controller('AddressesController',
$scope.openAddressModal = function(address) {
var ModalInstanceCtrl = function ($scope, $modalInstance, address) {
$scope.address = address;
$scope.isMobile = !!window.cordova;
$scope.mobileCopy = function(address) {
window.cordova.plugins.clipboard.copy(address);
window.plugins.toast.showShortBottom('Copied to clipboard');
}
$scope.cancel = function () {
$modalInstance.dismiss('cancel');