Feat: support ISO_4217 currency codes when searching

This commit is contained in:
Gabriel Masclef 2017-08-29 16:50:11 -03:00
commit 2b34344c95
No known key found for this signature in database
GPG key ID: DD6D7EAADE12280D
3 changed files with 16 additions and 7 deletions

View file

@ -43,8 +43,9 @@ angular.module('copayApp.controllers').controller('preferencesAltCurrencyControl
$scope.findCurrency = function(search) {
if (!search) init();
$scope.altCurrencyList = lodash.filter(completeAlternativeList, function(item) {
var val = item.name;
return lodash.includes(val.toLowerCase(), search.toLowerCase());
var val = item.name
var val2 = item.isoCode;
return lodash.includes(val.toLowerCase(), search.toLowerCase()) || lodash.includes(val2.toLowerCase(), search.toLowerCase());
});
$timeout(function() {
$scope.$apply();