scrolling refactor - copy backup phrase

This commit is contained in:
JDonadio 2017-02-16 16:41:36 -05:00
commit c0e70eb686
6 changed files with 15 additions and 5 deletions

View file

@ -97,6 +97,12 @@ angular.module('copayApp.controllers').controller('backupController',
});
};
$scope.copyRecoveryPhrase = function() {
if ($scope.wallet.network == 'livenet') return null;
else if (!$scope.wallet.credentials.mnemonic) return null;
else return $scope.wallet.credentials.mnemonic;
};
var confirm = function(cb) {
$scope.backupError = false;

View file

@ -18,6 +18,8 @@ angular.module('copayApp.directives')
var msg = gettextCatalog.getString('Copied to clipboard');
elem.bind('click', function() {
var data = scope.copyToClipboard;
if (!data) return;
if (isCordova) {
window.cordova.plugins.clipboard.copy(data);
window.plugins.toast.showShortCenter(msg);
@ -36,4 +38,3 @@ angular.module('copayApp.directives')
}
}
});

View file

@ -36,6 +36,9 @@ angular.module('copayApp').config(function(historicLogProvider, $provide, $logPr
// CHECKBOX CIRCLE
$ionicConfigProvider.form.checkbox('circle');
// USE NATIVE SCROLLING
$ionicConfigProvider.scrolling.jsScrolling(false);
$logProvider.debugEnabled(true);
$provide.decorator('$log', ['$delegate', 'platformInfo',
function($delegate, platformInfo) {