Fixes path to allAddresses from walletDetails
This commit is contained in:
parent
dbd137f0a4
commit
1cd1fdafd5
5 changed files with 31 additions and 4 deletions
|
|
@ -141,7 +141,14 @@ angular.module('copayApp.controllers').controller('addressesController', functio
|
|||
};
|
||||
|
||||
$scope.viewAllAddresses = function() {
|
||||
$state.go('tabs.settings.allAddresses', {
|
||||
var fromView = $ionicHistory.currentStateName();
|
||||
var path;
|
||||
if (fromView.indexOf('settings') !== -1) {
|
||||
path = 'tabs.settings.allAddresses';
|
||||
} else {
|
||||
path = 'tabs.wallet.allAddresses';
|
||||
}
|
||||
$state.go(path, {
|
||||
walletId: $scope.wallet.id
|
||||
});
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue