set backupFlag after showing the words

This commit is contained in:
Matias Alejo Garcia 2015-08-08 10:10:44 -03:00
commit ee04b7f318
5 changed files with 13 additions and 9 deletions

View file

@ -5,9 +5,11 @@ angular.module('copayApp.controllers').controller('wordsController',
this.getMnemonic = function() {
var fc = profileService.focusedClient;
var words = fc.getMnemonic();
console.log('[backup.js.7:words:]',words); //TODO
if (!words) return;
return words.split(' ');
};
this.done = function() {
$rootScope.$emit('Local/BackupDone');
};
});

View file

@ -21,7 +21,7 @@ angular.module('copayApp.controllers').controller('backupController',
return ;
}
$rootScope.$emit('Local/BackupDone');
notification.success(gettext('Backup created'), gettext('Encrypted backup file saved'));
notification.success(gettext('Success'), gettext('Encrypted export file saved'));
go.walletHome();
});
};