refactor receive view

This commit is contained in:
Gabriel Bazán 2017-05-03 16:25:27 -03:00
commit 552a4c8bcf
11 changed files with 134 additions and 672 deletions

View file

@ -1,11 +1,15 @@
'use strict';
angular.module('copayApp.controllers').controller('preferencesAdvancedController', function($scope, $timeout, $stateParams, profileService) {
angular.module('copayApp.controllers').controller('preferencesAdvancedController', function($scope, $timeout, $state, $stateParams, profileService) {
var wallet = profileService.getWallet($stateParams.walletId);
$scope.network = wallet.network;
$scope.wallet = wallet;
$scope.goToAddresses = function() {
$state.go('tabs.receive.addresses', {
walletId: $stateParams.walletId,
});
};
$timeout(function() {
$scope.$apply();