Rename manage by profile. Created a new page "createWallet"

This commit is contained in:
Gustavo Maximiliano Cortez 2014-11-11 16:01:33 -03:00
commit 4b8e18735d
12 changed files with 78 additions and 62 deletions

View file

@ -0,0 +1,5 @@
'use strict';
angular.module('copayApp.controllers').controller('CreateWalletController', function($scope, $rootScope) {
$rootScope.title = 'Create Wallet';
});

View file

@ -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);

View file

@ -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
});

View file

@ -229,7 +229,7 @@ angular.module('copayApp.services')
if (w) {
root.setFocusedWallet(w);
} else {
$location.path('/manage');
$location.path('/createWallet');
}
$timeout(function() {
$rootScope.$digest()