Mercurial > gemma
comparison 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 |
comparison
equal
deleted
inserted
replaced
3675:3c4f6b9acaad | 3676:f107e82b64ae |
---|---|
230 return false; | 230 return false; |
231 }, | 231 }, |
232 title() { | 232 title() { |
233 return this.$gettext("Imports"); | 233 return this.$gettext("Imports"); |
234 }, | 234 }, |
235 enhancedSchedules() { | |
236 return this.schedules.map(x => { | |
237 x["country"] = this.userCountries[x.user]; | |
238 return x; | |
239 }); | |
240 }, | |
235 filteredSchedules() { | 241 filteredSchedules() { |
236 return this.schedules.filter(s => { | 242 return this.enhancedSchedules.filter(s => { |
237 return (s.id + s.kind + s.user + this.userCountries[s.user]) | 243 return (s.id + s.kind + s.user + s.country) |
238 .toLowerCase() | 244 .toLowerCase() |
239 .includes(this.searchQuery.toLowerCase()); | 245 .includes(this.searchQuery.toLowerCase()); |
240 }); | 246 }); |
241 }, | 247 }, |
242 importScheduleLabel() { | 248 importScheduleLabel() { |