Mercurial > gemma
diff client/src/components/importconfiguration/Import.vue @ 3676:f107e82b64ae
import_configuration: enhance schedule with country of user
author | Thomas Junk <thomas.junk@intevation.de> |
---|---|
date | Mon, 17 Jun 2019 17:12:00 +0200 |
parents | a3d1fce63c9e |
children | 69166db6ba8a |
line wrap: on
line diff
--- a/client/src/components/importconfiguration/Import.vue Mon Jun 17 17:02:48 2019 +0200 +++ b/client/src/components/importconfiguration/Import.vue Mon Jun 17 17:12:00 2019 +0200 @@ -232,9 +232,15 @@ title() { return this.$gettext("Imports"); }, + enhancedSchedules() { + return this.schedules.map(x => { + x["country"] = this.userCountries[x.user]; + return x; + }); + }, filteredSchedules() { - return this.schedules.filter(s => { - return (s.id + s.kind + s.user + this.userCountries[s.user]) + return this.enhancedSchedules.filter(s => { + return (s.id + s.kind + s.user + s.country) .toLowerCase() .includes(this.searchQuery.toLowerCase()); });