Wallet/src/js/controllers/preferencesAdvancedController.js

17 lines
483 B
JavaScript
Raw Normal View History

'use strict';
2017-05-03 16:25:27 -03:00
angular.module('copayApp.controllers').controller('preferencesAdvancedController', function($scope, $timeout, $state, $stateParams, profileService) {
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() {
2017-05-03 17:08:18 -03:00
$state.go('tabs.settings.addresses', {
2017-05-03 16:25:27 -03:00
walletId: $stateParams.walletId,
});
};
$timeout(function() {
$scope.$apply();
}, 1);
});