add manage page to create/join/import/delete wallets

This commit is contained in:
Matias Alejo Garcia 2014-10-11 17:26:10 -03:00
commit d9cd2e95d4
5 changed files with 36 additions and 9 deletions

3
js/controllers/manage.js Normal file
View file

@ -0,0 +1,3 @@
'use strict';
angular.module('copayApp.controllers').controller('ManageController', function($scope, $rootScope, $location, controllerUtils) {
});

View file

@ -202,7 +202,9 @@ Storage.prototype.clearAll = function(cb) {
this.db.clear(cb);
};
Storage.prototype.decrypt = function(base64) {
Storage.prototype.decrypt = function(base64, password) {
// password
var decryptedStr = this._decrypt(base64);
return JSON.parse(decryptedStr);
};

View file

@ -60,6 +60,10 @@ angular
templateUrl: 'views/warning.html',
validate: true
})
.when('/manage', {
templateUrl: 'views/manage.html',
validate: true
})
.otherwise({
templateUrl: 'views/errors/404.html',
title: 'Error'