Mercurial > gemma
changeset 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 | 3c4f6b9acaad |
children | 24fafb86b528 |
files | client/src/components/importconfiguration/Import.vue |
diffstat | 1 files changed, 8 insertions(+), 2 deletions(-) [+] |
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()); });