Merge pull request #1082 from yemel/feature/mobile-clipboard
Feature/mobile clipboard
This commit is contained in:
commit
352185e66c
9 changed files with 291 additions and 1 deletions
|
|
@ -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');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue