23 lines
696 B
JavaScript
23 lines
696 B
JavaScript
'use strict';
|
|
|
|
angular.module('copayApp.controllers').controller('preferencesDeleteWordsController',
|
|
function(confirmDialog, notification, profileService, go, gettext) {
|
|
var self = this;
|
|
var fc = profileService.focusedClient;
|
|
var msg = gettext('Are you sure you want to delete the backup words?');
|
|
var successMsg = gettext('Backup words deleted');
|
|
|
|
self.delete = function() {
|
|
confirmDialog.show(msg,
|
|
function(ok) {
|
|
if (ok) {
|
|
fc.clearMnemonic();
|
|
profileService.updateCredentialsFC(function() {
|
|
notification.success(successMsg);
|
|
go.walletHome();
|
|
});
|
|
}
|
|
});
|
|
};
|
|
|
|
});
|