move addresses view to settings
This commit is contained in:
parent
552a4c8bcf
commit
e76924cb74
5 changed files with 17 additions and 9 deletions
|
|
@ -130,8 +130,16 @@ angular.module('copayApp.controllers').controller('addressesController', functio
|
|||
|
||||
$scope.scan = function() {
|
||||
walletService.startScan($scope.wallet);
|
||||
$ionicHistory.nextViewOptions({
|
||||
disableAnimate: true,
|
||||
historyRoot: true
|
||||
});
|
||||
$ionicHistory.clearHistory();
|
||||
$state.go('tabs.home');
|
||||
$state.go('tabs.home').then(function() {
|
||||
$state.transitionTo('tabs.wallet', {
|
||||
walletId: $scope.wallet.credentials.walletId
|
||||
});
|
||||
});
|
||||
};
|
||||
|
||||
$scope.sendByEmail = function() {
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ angular.module('copayApp.controllers').controller('preferencesAdvancedController
|
|||
$scope.wallet = wallet;
|
||||
|
||||
$scope.goToAddresses = function() {
|
||||
$state.go('tabs.receive.addresses', {
|
||||
$state.go('tabs.settings.addresses', {
|
||||
walletId: $stateParams.walletId,
|
||||
});
|
||||
};
|
||||
|
|
|
|||
|
|
@ -13,11 +13,11 @@ angular.module('copayApp.controllers').controller('tabReceiveController', functi
|
|||
});
|
||||
};
|
||||
|
||||
$scope.setAddress = function(forceNew) {
|
||||
$scope.setAddress = function() {
|
||||
if (!$scope.wallet || $scope.generatingAddress || !$scope.wallet.isComplete()) return;
|
||||
$scope.addr = null;
|
||||
$scope.generatingAddress = true;
|
||||
walletService.getAddress($scope.wallet, forceNew, function(err, addr) {
|
||||
walletService.getAddress($scope.wallet, false, function(err, addr) {
|
||||
$scope.generatingAddress = false;
|
||||
|
||||
if (err) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue