Mercurial > gemma
diff client/src/components/staging/StagingDetail.vue @ 2337:0f3b0937e7c1
staging: format datetime instead of format date in AGM Diff View
author | Thomas Junk <thomas.junk@intevation.de> |
---|---|
date | Tue, 19 Feb 2019 17:06:55 +0100 |
parents | eb82b273c615 |
children | 7cdc211b90cd |
line wrap: on
line diff
--- a/client/src/components/staging/StagingDetail.vue Tue Feb 19 17:00:32 2019 +0100 +++ b/client/src/components/staging/StagingDetail.vue Tue Feb 19 17:06:55 2019 +0100 @@ -198,9 +198,7 @@ ><small>{{ result["fk-gauge-id"] }}</small></span > <span class="condensed agmdetail text-left" - ><small>{{ - formatSurveyDate(result["measure-date"]) - }}</small></span + ><small>{{ formatDateTime(result["measure-date"]) }}</small></span > <div @click="toggleDiff(index)" @@ -292,7 +290,7 @@ * Thomas Junk <thomas.junk@intevation.de> */ -import { formatSurveyDate } from "@/lib/date.js"; +import { formatSurveyDate, formatDateTime } from "@/lib/date.js"; import { STATES } from "@/store/imports.js"; import { HTTP } from "@/lib/http"; import { WFS } from "ol/format.js"; @@ -451,6 +449,9 @@ formatSurveyDate(date) { return formatSurveyDate(date); }, + formatDateTime(date) { + return formatDateTime(date); + }, needsApproval(item) { return item.status === STATES.NEEDSAPPROVAL; },