diff --git a/js/controllers/addresses.js b/js/controllers/addresses.js index c81a10fc3..cef87776f 100644 --- a/js/controllers/addresses.js +++ b/js/controllers/addresses.js @@ -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'); diff --git a/views/modals/qr-address.html b/views/modals/qr-address.html index b1768df8d..7fb9a63ed 100644 --- a/views/modals/qr-address.html +++ b/views/modals/qr-address.html @@ -11,6 +11,9 @@



+