Names fixes
This commit is contained in:
parent
372b4697e7
commit
a3949efbfd
6 changed files with 12 additions and 12 deletions
|
|
@ -12,9 +12,9 @@ angular.module('copayApp.controllers').controller('preferencesNotificationsContr
|
|||
value: config.pushNotificationsEnabled
|
||||
};
|
||||
|
||||
var isNotifyTxEnabled = config.notifyIfTxConfirmed ? config.notifyIfTxConfirmed.enabled : false;
|
||||
$scope.notifyIfTxConfirmed = {
|
||||
value: isNotifyTxEnabled
|
||||
var isConfirmedTxsNotificationsEnabled = config.confirmedTxsNotifications ? config.confirmedTxsNotifications.enabled : false;
|
||||
$scope.confirmedTxsNotifications = {
|
||||
value: isConfirmedTxsNotificationsEnabled
|
||||
};
|
||||
|
||||
$scope.latestEmail = {
|
||||
|
|
@ -47,11 +47,11 @@ angular.module('copayApp.controllers').controller('preferencesNotificationsContr
|
|||
});
|
||||
};
|
||||
|
||||
$scope.notifyIfTxConfirmedChange = function() {
|
||||
$scope.confirmedTxsNotificationsChange = function() {
|
||||
if (!$scope.pushNotifications) return;
|
||||
var opts = {
|
||||
notifyIfTxConfirmed: {
|
||||
enabled: $scope.notifyIfTxConfirmed.value
|
||||
confirmedTxsNotifications: {
|
||||
enabled: $scope.confirmedTxsNotifications.value
|
||||
}
|
||||
};
|
||||
configService.set(opts, function(err) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue