add routes and views

This commit is contained in:
Javier 2016-11-14 14:52:10 -03:00
commit 7a63bfcc72
6 changed files with 109 additions and 1 deletions

View file

@ -0,0 +1,6 @@
'use strict';
angular.module('copayApp.controllers').controller('addressesController', function($scope, $stateParams, profileService, walletService) {
$scope.wallet = profileService.getWallet($stateParams.walletId);
});

View file

@ -48,6 +48,12 @@ angular.module('copayApp.controllers').controller('tabReceiveController', functi
}, 100);
};
$scope.showAddresses = function() {
$state.transitionTo('tabs.receive.addresses', {
walletId: $scope.wallet.credentials.walletId
});
};
$scope.openBackupNeededModal = function() {
$ionicModal.fromTemplateUrl('views/includes/backupNeededPopup.html', {
scope: $scope,