fix fingerprint setting, remove activity from home
This commit is contained in:
parent
21c5cd3fd7
commit
333b4f45a0
9 changed files with 44 additions and 34 deletions
|
|
@ -69,10 +69,12 @@ angular.module('copayApp.controllers').controller('preferencesController',
|
|||
|
||||
$scope.touchIdChange = function() {
|
||||
var newStatus = $scope.touchIdEnabled;
|
||||
walletService.setTouchId(wallet, newStatus, function(err) {
|
||||
walletService.setTouchId(wallet, !!newStatus, function(err) {
|
||||
if (err) {
|
||||
$log.warn(err);
|
||||
$scope.touchIdEnabled = !newStatus;
|
||||
$timeout(function() {
|
||||
$scope.$apply();
|
||||
}, 1);
|
||||
return;
|
||||
}
|
||||
$log.debug('Touch Id status changed: ' + newStatus);
|
||||
|
|
|
|||
|
|
@ -31,19 +31,19 @@ angular.module('copayApp.controllers').controller('tabHomeController',
|
|||
wallet.status = status;
|
||||
});
|
||||
});
|
||||
|
||||
$scope.fetchingNotifications = true;
|
||||
profileService.getNotifications({
|
||||
limit: 3
|
||||
}, function(err, n) {
|
||||
if (err) {
|
||||
console.log('[tab-home.js.35:err:]', $log.error(err)); //TODO
|
||||
return;
|
||||
}
|
||||
$scope.fetchingNotifications = false;
|
||||
setNotifications(n);
|
||||
$ionicScrollDelegate.resize();
|
||||
})
|
||||
//
|
||||
// $scope.fetchingNotifications = true;
|
||||
// profileService.getNotifications({
|
||||
// limit: 3
|
||||
// }, function(err, n) {
|
||||
// if (err) {
|
||||
// console.log('[tab-home.js.35:err:]', $log.error(err)); //TODO
|
||||
// return;
|
||||
// }
|
||||
// $scope.fetchingNotifications = false;
|
||||
// setNotifications(n);
|
||||
// $ionicScrollDelegate.resize();
|
||||
// })
|
||||
};
|
||||
|
||||
$scope.updateWallet = function(wallet) {
|
||||
|
|
@ -55,17 +55,17 @@ angular.module('copayApp.controllers').controller('tabHomeController',
|
|||
}
|
||||
wallet.status = status;
|
||||
|
||||
profileService.getNotifications({
|
||||
limit: 3
|
||||
}, function(err, n) {
|
||||
console.log('[tab-home.js.57]', n); //TODO
|
||||
if (err) {
|
||||
console.log('[tab-home.js.35:err:]', $log.error(err)); //TODO
|
||||
return;
|
||||
}
|
||||
setNotifications(n);
|
||||
$ionicScrollDelegate.resize();
|
||||
})
|
||||
// profileService.getNotifications({
|
||||
// limit: 3
|
||||
// }, function(err, n) {
|
||||
// console.log('[tab-home.js.57]', n); //TODO
|
||||
// if (err) {
|
||||
// console.log('[tab-home.js.35:err:]', $log.error(err)); //TODO
|
||||
// return;
|
||||
// }
|
||||
// setNotifications(n);
|
||||
// $ionicScrollDelegate.resize();
|
||||
// })
|
||||
});
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue