Wallet/src/js/controllers/preferencesAdvancedController.js
2017-05-08 10:38:08 -03:00

17 lines
483 B
JavaScript

'use strict';
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.settings.addresses', {
walletId: $stateParams.walletId,
});
};
$timeout(function() {
$scope.$apply();
}, 1);
});