Wallet/src/js/controllers/preferencesAdvancedController.js

21 lines
609 B
JavaScript
Raw Normal View History

'use strict';
angular.module('copayApp.controllers').controller('preferencesAdvancedController', function($scope, $timeout, $state, $stateParams, profileService, $ionicNavBarDelegate) {
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,
});
};
$scope.$on("$ionicView.enter", function(event, data) {
$ionicNavBarDelegate.showBar(true);
});
$timeout(function() {
$scope.$apply();
}, 1);
});