add manage page to create/join/import/delete wallets
This commit is contained in:
parent
29bbfa184c
commit
d9cd2e95d4
5 changed files with 36 additions and 9 deletions
3
js/controllers/manage.js
Normal file
3
js/controllers/manage.js
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
'use strict';
|
||||||
|
angular.module('copayApp.controllers').controller('ManageController', function($scope, $rootScope, $location, controllerUtils) {
|
||||||
|
});
|
||||||
|
|
@ -202,7 +202,9 @@ Storage.prototype.clearAll = function(cb) {
|
||||||
this.db.clear(cb);
|
this.db.clear(cb);
|
||||||
};
|
};
|
||||||
|
|
||||||
Storage.prototype.decrypt = function(base64) {
|
Storage.prototype.decrypt = function(base64, password) {
|
||||||
|
// password
|
||||||
|
|
||||||
var decryptedStr = this._decrypt(base64);
|
var decryptedStr = this._decrypt(base64);
|
||||||
return JSON.parse(decryptedStr);
|
return JSON.parse(decryptedStr);
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -60,6 +60,10 @@ angular
|
||||||
templateUrl: 'views/warning.html',
|
templateUrl: 'views/warning.html',
|
||||||
validate: true
|
validate: true
|
||||||
})
|
})
|
||||||
|
.when('/manage', {
|
||||||
|
templateUrl: 'views/manage.html',
|
||||||
|
validate: true
|
||||||
|
})
|
||||||
.otherwise({
|
.otherwise({
|
||||||
templateUrl: 'views/errors/404.html',
|
templateUrl: 'views/errors/404.html',
|
||||||
title: 'Error'
|
title: 'Error'
|
||||||
|
|
|
||||||
|
|
@ -58,16 +58,10 @@
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
<li class="nav-item" ui-route="{{create}}">
|
<li class="nav-item" ui-route="{{create}}">
|
||||||
<a href="#!/create" class="db p20h" title="Create"><i class="size-21 m20r fi-plus"></i> {{'Create' | translate }} </a>
|
<a href="#!/manage" class="db p20h" title="Create"><i class="size-21 m20r fi-plus"></i> {{'Manage Wallets' | translate }} </a>
|
||||||
</li>
|
</li>
|
||||||
<li class="nav-item" ui-route="{{create}}">
|
|
||||||
<a href="#!/join" class="db p20h" title="Join"><i class="size-21 m20r fi-torsos-all"></i> {{'Join' | translate }} </a>
|
|
||||||
</li>
|
|
||||||
<li class="nav-item" ui-route="{{create}}">
|
|
||||||
<a href="#!/backup" class="db p20h" title="Create"><i class="size-21 m20r fi-download"></i> {{'Backup' | translate }} </a>
|
|
||||||
</li>
|
|
||||||
|
|
||||||
|
|
||||||
<li>
|
<li>
|
||||||
<a href="#!/" class="db p20h" title="Close" ng-click="signout()"><i class="size-21 m20r fi-power"></i> {{'Close'|translate}}</a>
|
<a href="#!/" class="db p20h" title="Close" ng-click="signout()"><i class="size-21 m20r fi-power"></i> {{'Close'|translate}}</a>
|
||||||
|
|
|
||||||
24
views/manage.html
Normal file
24
views/manage.html
Normal file
|
|
@ -0,0 +1,24 @@
|
||||||
|
<div class="backup" ng-controller="MoreController">
|
||||||
|
<h1 translate>Manage Wallets</h1>
|
||||||
|
<div class="oh large-12 columns panel">
|
||||||
|
<h3><i class="fi-download m10r"></i> <span translate>Backup</span> </h3>
|
||||||
|
<p translate class="large-8 columns text-gray">It's important to backup your profile so that you can recover it in case of disaster. The backup will include all your profile's wallets</p>
|
||||||
|
<div class="large-4 columns">
|
||||||
|
<a translate class="button primary expand" ng-click="downloadBackup()">Backup profile</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="large-12 columns line-dashed-h m15b"></div>
|
||||||
|
<div class="row collapse">
|
||||||
|
<ul>
|
||||||
|
<li class="nav-item" ui-route="{{create}}">
|
||||||
|
<a href="#!/create" class="db p20h" title="Create"><i class="size-21 m20r fi-plus"></i> {{'Create' | translate }} </a>
|
||||||
|
</li>
|
||||||
|
<li class="nav-item" ui-route="{{create}}">
|
||||||
|
<a href="#!/join" class="db p20h" title="Join"><i class="size-21 m20r fi-torsos-all"></i> {{'Join' | translate }} </a>
|
||||||
|
</li>
|
||||||
|
<li class="nav-item" ui-route="{{create}}">
|
||||||
|
<a href="#!/import" class="db p20h" title="Create"><i class="size-21 m20r fi-download"></i> {{'Import wallet' | translate }} </a>
|
||||||
|
</li>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
Loading…
Add table
Add a link
Reference in a new issue