2016-09-08 19:50:18 -03:00
|
|
|
'use strict';
|
|
|
|
|
|
2017-05-03 16:25:27 -03:00
|
|
|
angular.module('copayApp.controllers').controller('preferencesAdvancedController', function($scope, $timeout, $state, $stateParams, profileService) {
|
2016-09-08 19:50:18 -03:00
|
|
|
var wallet = profileService.getWallet($stateParams.walletId);
|
|
|
|
|
$scope.network = wallet.network;
|
2017-01-18 13:15:46 -03:00
|
|
|
$scope.wallet = wallet;
|
|
|
|
|
|
2017-05-03 16:25:27 -03:00
|
|
|
$scope.goToAddresses = function() {
|
|
|
|
|
$state.go('tabs.receive.addresses', {
|
|
|
|
|
walletId: $stateParams.walletId,
|
|
|
|
|
});
|
|
|
|
|
};
|
2016-09-08 19:50:18 -03:00
|
|
|
|
|
|
|
|
$timeout(function() {
|
|
|
|
|
$scope.$apply();
|
|
|
|
|
}, 1);
|
|
|
|
|
});
|