Wallet/src/js/controllers/preferencesAdvancedController.js
2018-02-28 14:15:44 +05:00

21 lines
609 B
JavaScript

'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;
$scope.wallet = wallet;
$scope.goToAddresses = function() {
$state.go('tabs.settings.addresses', {
walletId: $stateParams.walletId,
});
};
$scope.$on("$ionicView.enter", function(event, data) {
$ionicNavBarDelegate.showBar(true);
});
$timeout(function() {
$scope.$apply();
}, 1);
});