Mercurial > gemma
comparison client/src/components/Bottlenecks.vue @ 2436:64ff5984351e
client: renamed store property
In alignment to 3679d604645e the related store property was also renamed.
author | Markus Kottlaender <markus@intevation.de> |
---|---|
date | Fri, 01 Mar 2019 09:00:53 +0100 |
parents | 3679d604645e |
children | 9ae2a2f758bb |
comparison
equal
deleted
inserted
replaced
2435:3679d604645e | 2436:64ff5984351e |
---|---|
156 ...mapState("application", [ | 156 ...mapState("application", [ |
157 "searchQuery", | 157 "searchQuery", |
158 "showSearchbarLastState", | 158 "showSearchbarLastState", |
159 "showSplitscreen" | 159 "showSplitscreen" |
160 ]), | 160 ]), |
161 ...mapState("bottlenecks", ["bottlenecks"]), | 161 ...mapState("bottlenecks", ["bottlenecksList"]), |
162 sortIcon() { | 162 sortIcon() { |
163 return this.sortDirection === "ASC" | 163 return this.sortDirection === "ASC" |
164 ? "sort-amount-down" | 164 ? "sort-amount-down" |
165 : "sort-amount-up"; | 165 : "sort-amount-up"; |
166 } | 166 } |
168 methods: { | 168 methods: { |
169 formatSurveyDate(date) { | 169 formatSurveyDate(date) { |
170 return formatSurveyDate(date); | 170 return formatSurveyDate(date); |
171 }, | 171 }, |
172 filteredAndSortedBottlenecks() { | 172 filteredAndSortedBottlenecks() { |
173 return this.bottlenecks | 173 return this.bottlenecksList |
174 .filter(bn => { | 174 .filter(bn => { |
175 return bn.properties.name | 175 return bn.properties.name |
176 .toLowerCase() | 176 .toLowerCase() |
177 .includes(this.searchQuery.toLowerCase()); | 177 .includes(this.searchQuery.toLowerCase()); |
178 }) | 178 }) |