merged email modal and wired up copay shell integration for it

This commit is contained in:
Gordon Hall 2014-06-03 16:51:44 -04:00
commit 47f9ade884
3 changed files with 56 additions and 29 deletions

View file

@ -75,10 +75,10 @@
location.href = '#/backup';
var ctrl = controller('BackupController');
if (!ctrl) return needsWalletLogin(ipc);
ctrl.email();
ctrl.openModal();
});
ipc.on('backup:import', function(data) {
ipc.on('backup:import:data', function(data) {
location.href = '#/import';
var ctrl = controller('ImportController');
if (!ctrl) return;
@ -87,6 +87,10 @@
ctrl.$apply();
});
ipc.on('backup:import', function(data) {
location.href = '#/import';
});
// let the shell know when an error occurs
window.onerror = function(err) {
ipc.send('error', err);