Mercurial > gemma
diff client/src/components/ImportStretches.vue @ 2541:468c8dc796cf
client: convert lib helper functions to Vue filters
author | Markus Kottlaender <markus@intevation.de> |
---|---|
date | Thu, 07 Mar 2019 15:53:12 +0100 |
parents | 9ae2a2f758bb |
children | dc4fae4bdb8f |
line wrap: on
line diff
--- a/client/src/components/ImportStretches.vue Thu Mar 07 15:19:16 2019 +0100 +++ b/client/src/components/ImportStretches.vue Thu Mar 07 15:53:12 2019 +0100 @@ -34,7 +34,7 @@ }}</a> </div> <div class="py-2 col-2"> - {{ formatSurveyDate(stretch.properties["date_info"]) }} + {{ stretch.properties["date_info"] | surveyDate }} </div> <div class="py-2 col-3"> {{ stretch.properties["source_organization"] }} @@ -254,7 +254,6 @@ */ import { mapState, mapGetters } from "vuex"; import { displayError, displayInfo } from "@/lib/errors.js"; -import { formatSurveyDate } from "@/lib/date.js"; import { LAYERS } from "@/store/map.js"; export default { @@ -376,9 +375,6 @@ preventZoomOut: true }); }, - formatSurveyDate(d) { - return formatSurveyDate(d); - }, loadStretches() { return new Promise((resolve, reject) => { this.$store