mirror of https://github.com/BTCPrivate/copay.git
Merge pull request #6175 from gabrielbazan7/fix/UItoogle
fix spending password toggle
This commit is contained in:
commit
5309d2f864
|
@ -3,11 +3,7 @@
|
||||||
angular.module('copayApp.controllers').controller('preferencesController',
|
angular.module('copayApp.controllers').controller('preferencesController',
|
||||||
function($scope, $rootScope, $timeout, $log, $ionicHistory, configService, profileService, fingerprintService, walletService) {
|
function($scope, $rootScope, $timeout, $log, $ionicHistory, configService, profileService, fingerprintService, walletService) {
|
||||||
var wallet;
|
var wallet;
|
||||||
var walletId;
|
var walletId;
|
||||||
|
|
||||||
$scope.encryptEnabled = {
|
|
||||||
value: walletService.isEncrypted(wallet)
|
|
||||||
};
|
|
||||||
|
|
||||||
$scope.hiddenBalanceChange = function() {
|
$scope.hiddenBalanceChange = function() {
|
||||||
var opts = {
|
var opts = {
|
||||||
|
@ -80,7 +76,7 @@ angular.module('copayApp.controllers').controller('preferencesController',
|
||||||
wallet = profileService.getWallet(data.stateParams.walletId);
|
wallet = profileService.getWallet(data.stateParams.walletId);
|
||||||
walletId = wallet.credentials.walletId;
|
walletId = wallet.credentials.walletId;
|
||||||
$scope.wallet = wallet;
|
$scope.wallet = wallet;
|
||||||
|
|
||||||
$scope.externalSource = null;
|
$scope.externalSource = null;
|
||||||
|
|
||||||
if (!wallet)
|
if (!wallet)
|
||||||
|
@ -92,6 +88,10 @@ angular.module('copayApp.controllers').controller('preferencesController',
|
||||||
value: $scope.wallet.balanceHidden
|
value: $scope.wallet.balanceHidden
|
||||||
};
|
};
|
||||||
|
|
||||||
|
$scope.encryptEnabled = {
|
||||||
|
value: walletService.isEncrypted(wallet)
|
||||||
|
};
|
||||||
|
|
||||||
$scope.touchIdAvailable = fingerprintService.isAvailable();
|
$scope.touchIdAvailable = fingerprintService.isAvailable();
|
||||||
$scope.touchIdEnabled = {
|
$scope.touchIdEnabled = {
|
||||||
value: config.touchIdFor ? config.touchIdFor[walletId] : null
|
value: config.touchIdFor ? config.touchIdFor[walletId] : null
|
||||||
|
|
Loading…
Reference in New Issue