Rename manage by profile. Created a new page "createWallet"
This commit is contained in:
parent
81527aa028
commit
4b8e18735d
12 changed files with 78 additions and 62 deletions
5
js/controllers/createWallet.js
Normal file
5
js/controllers/createWallet.js
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
'use strict';
|
||||
angular.module('copayApp.controllers').controller('CreateWalletController', function($scope, $rootScope) {
|
||||
|
||||
$rootScope.title = 'Create Wallet';
|
||||
});
|
||||
|
|
@ -1,8 +1,8 @@
|
|||
'use strict';
|
||||
angular.module('copayApp.controllers').controller('ManageController', function($scope, $rootScope, $location, controllerUtils, backupService) {
|
||||
angular.module('copayApp.controllers').controller('ProfileController', function($scope, $rootScope, $location, controllerUtils, backupService) {
|
||||
$scope.isSafari = Object.prototype.toString.call(window.HTMLElement).indexOf('Constructor') > 0;
|
||||
|
||||
$rootScope.title = 'Manage wallets';
|
||||
$rootScope.title = 'Profile';
|
||||
|
||||
$scope.downloadBackup = function() {
|
||||
backupService.profileDownload($rootScope.iden);
|
||||
|
|
@ -73,8 +73,12 @@ angular
|
|||
templateUrl: 'views/warning.html',
|
||||
logged: true
|
||||
})
|
||||
.when('/manage', {
|
||||
templateUrl: 'views/manage.html',
|
||||
.when('/profile', {
|
||||
templateUrl: 'views/profile.html',
|
||||
logged: true
|
||||
})
|
||||
.when('/createWallet', {
|
||||
templateUrl: 'views/createWallet.html',
|
||||
logged: true
|
||||
});
|
||||
|
||||
|
|
|
|||
|
|
@ -229,7 +229,7 @@ angular.module('copayApp.services')
|
|||
if (w) {
|
||||
root.setFocusedWallet(w);
|
||||
} else {
|
||||
$location.path('/manage');
|
||||
$location.path('/createWallet');
|
||||
}
|
||||
$timeout(function() {
|
||||
$rootScope.$digest()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue