better refresh in walletDetails

This commit is contained in:
Matias Alejo Garcia 2017-01-17 12:27:00 -03:00
commit 7fd7c47f18
No known key found for this signature in database
GPG key ID: 02470DB551277AB3
6 changed files with 6 additions and 52 deletions

View file

@ -95,17 +95,6 @@ angular.module('copayApp.controllers').controller('advancedSettingsController',
});
};
$scope.frequentlyUsedChange = function() {
var opts = {
frequentlyUsed: {
enabled: $scope.frequentlyUsedEnabled.value
}
};
configService.set(opts, function(err) {
if (err) $log.debug(err);
});
};
$scope.$on("$ionicView.beforeEnter", function(event, data) {
updateConfig();
});

View file

@ -352,7 +352,7 @@ angular.module('copayApp.controllers').controller('walletDetailsController', fun
listeners = [
$rootScope.$on('bwsEvent', function(e, walletId) {
if (walletId == $scope.wallet.id)
if (walletId == $scope.wallet.id && e.type!='NewAddress')
$scope.updateAll();
}),
$rootScope.$on('Local/TxAction', function(e, walletId) {

View file

@ -61,14 +61,9 @@ angular.module('copayApp.services').factory('configService', function(storageSer
enabled: true
},
//Experimental Features
recentTransactions: {
enabled: false //disabled by default
},
frequentlyUsed: {
enabled: true
enabled: true,
},
rates: {
@ -214,9 +209,6 @@ angular.module('copayApp.services').factory('configService', function(storageSer
if (!configCache.recentTransactions) {
configCache.recentTransactions = defaultConfig.recentTransactions;
}
if (!configCache.frequentlyUsed) {
configCache.frequentlyUsed = defaultConfig.frequentlyUsed;
}
if (!configCache.pushNotifications) {
configCache.pushNotifications = defaultConfig.pushNotifications;
}

View file

@ -25,6 +25,7 @@
padding: 15px;
background-color: #fff;
color: $mid-gray;
font-size:0.9em;
}
}
}