More copy and share for mobile

This commit is contained in:
Gustavo Maximiliano Cortez 2015-02-06 13:23:10 -03:00
commit 79db8cea2e
11 changed files with 69 additions and 26 deletions

View file

@ -137,6 +137,13 @@ angular.module('copayApp.controllers').controller('MoreController',
});
};
$scope.copyText = function(text) {
if (isCordova) {
window.cordova.plugins.clipboard.copy(text);
window.plugins.toast.showShortCenter('Copied to clipboard');
}
};
$scope.downloadWalletBackup = function() {
backupService.walletDownload(w);
};