New directive copy-to-clipboard multiplatform

This commit is contained in:
Gustavo Maximiliano Cortez 2016-08-23 12:16:05 -03:00
commit 0a047782bb
No known key found for this signature in database
GPG key ID: 15EDAD8D9F2EB1AF
15 changed files with 66 additions and 68 deletions

View file

@ -113,13 +113,6 @@ angular.module('copayApp.controllers').controller('preferencesInformation',
save('#202020');
};
$scope.copyToClipboard = function(data) {
if ($scope.isCordova) {
window.cordova.plugins.clipboard.copy(data);
window.plugins.toast.showShortCenter(gettextCatalog.getString('Copied to clipboard'));
}
};
$scope.scan = function() {
walletService.startScan(wallet);
$state.go('tabs.home');