rm delete words view

This commit is contained in:
Ivan Socolsky 2016-10-07 10:34:28 -03:00
commit 0f79a349ba
No known key found for this signature in database
GPG key ID: FAECE6A05FAA4F56
4 changed files with 0 additions and 60 deletions

View file

@ -1,22 +0,0 @@
'use strict';
angular.module('copayApp.controllers').controller('preferencesDeleteWordsController', function($scope, $ionicHistory, $stateParams, gettextCatalog, confirmDialog, lodash, profileService, gettext) {
var wallet = profileService.getWallet($stateParams.walletId);
var msg = gettext('Are you sure you want to delete the recovery phrase?');
var successMsg = gettext('Recovery phrase deleted');
$scope.needsBackup = wallet.needsBackup;
if (lodash.isEmpty(wallet.credentials.mnemonic) && lodash.isEmpty(wallet.credentials.mnemonicEncrypted))
$scope.deleted = true;
$scope.delete = function() {
confirmDialog.show(msg, function(ok) {
if (ok) {
wallet.clearMnemonic();
profileService.updateCredentials(JSON.parse(wallet.export()), function() {
$ionicHistory.goBack();
});
}
});
};
});