Change url to /receive and /history

This commit is contained in:
Yemel Jardi 2014-08-06 15:34:56 -03:00
commit 2ba794fc47
7 changed files with 12 additions and 12 deletions

View file

@ -15,7 +15,7 @@ angular.module('copayApp.controllers').controller('CopayersController',
}
$scope.goToWallet = function() {
$location.path('/addresses');
$location.path('/receive');
};
});

View file

@ -8,7 +8,7 @@ angular.module('copayApp.controllers').controller('SidebarController',
$scope.menu = [{
'title': 'Receive',
'icon': 'fi-arrow-left',
'link': 'addresses'
'link': 'receive'
}, {
'title': 'Send',
'icon': 'fi-arrow-right',
@ -16,7 +16,7 @@ angular.module('copayApp.controllers').controller('SidebarController',
}, {
'title': 'History',
'icon': 'fi-clipboard-pencil',
'link': 'transactions'
'link': 'history'
}, {
'title': 'More',
'icon': 'fi-download',

View file

@ -30,11 +30,11 @@ angular
templateUrl: 'views/copayers.html',
validate: true
})
.when('/addresses', {
.when('/receive', {
templateUrl: 'views/addresses.html',
validate: true
})
.when('/transactions', {
.when('/history', {
templateUrl: 'views/transactions.html',
validate: true
})

View file

@ -51,7 +51,7 @@ angular.module('copayApp.services')
});
wallet.on('serverError', function(m) {
var message = m || 'The PeerJS server is not responding, please try again';
$location.path('addresses');
$location.path('receive');
root.onErrorDigest($scope, message);
});
wallet.on('ready', function() {
@ -123,7 +123,7 @@ angular.module('copayApp.services')
if ($rootScope.pendingPayment) {
$location.path('send');
} else {
$location.path('addresses');
$location.path('receive');
}
if (!config.disableVideo)
video.setOwnPeer(myPeerID, w, handlePeerVideo);