mv backup to more filenames
This commit is contained in:
parent
b388c3eadf
commit
2617b76428
3 changed files with 2 additions and 2 deletions
|
|
@ -1,43 +0,0 @@
|
|||
'use strict';
|
||||
|
||||
angular.module('copayApp.controllers').controller('BackupController',
|
||||
function($scope, $rootScope, $location, backupService, walletFactory, controllerUtils, notification) {
|
||||
|
||||
$scope.hideAdv=true;
|
||||
$scope.hidePriv=true;
|
||||
|
||||
$scope.getPrivate = function() {
|
||||
var w = $rootScope.wallet;
|
||||
return w.privateKey.toObj().extendedPrivateKeyString;
|
||||
}
|
||||
|
||||
$scope.downloadBackup = function() {
|
||||
var w = $rootScope.wallet;
|
||||
backupService.download(w);
|
||||
}
|
||||
|
||||
$scope.deleteWallet = function() {
|
||||
var w = $rootScope.wallet;
|
||||
w.disconnect();
|
||||
walletFactory.delete(w.id, function() {
|
||||
controllerUtils.logout();
|
||||
});
|
||||
};
|
||||
|
||||
$scope.updateIndexes = function() {
|
||||
var w = $rootScope.wallet;
|
||||
|
||||
notification.info('Scaning for transactions','Using derived addresses from your wallet');
|
||||
w.updateIndexes(function(err) {
|
||||
notification.info('Scan Ended', 'Updating balance');
|
||||
if (err) {
|
||||
notification.error('Error', 'Error updating indexes: ' + err);
|
||||
}
|
||||
controllerUtils.updateAddressList();
|
||||
controllerUtils.updateBalance(function(){
|
||||
notification.info('Finished', 'The balance is updated using the derived addresses');
|
||||
w.sendIndexes();
|
||||
});
|
||||
});
|
||||
};
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue