scrolling refactor - copy backup phrase
This commit is contained in:
parent
fc52a8cf87
commit
c0e70eb686
6 changed files with 15 additions and 5 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
|
|
@ -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')
|
|||
}
|
||||
}
|
||||
});
|
||||
|
||||
|
|
|
|||
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue