Mercurial > gemma
comparison client/src/components/importoverview/ImportOverviewAlt.vue @ 2544:c61339e676e0
fix build
author | Thomas Junk <thomas.junk@intevation.de> |
---|---|
date | Thu, 07 Mar 2019 17:05:43 +0100 |
parents | a542045f28a6 |
children | ee6f5c22317a |
comparison
equal
deleted
inserted
replaced
2543:a542045f28a6 | 2544:c61339e676e0 |
---|---|
41 <div class="id small condensed">{{ entry.id }}</div> | 41 <div class="id small condensed">{{ entry.id }}</div> |
42 <div class="kind small condensed"> | 42 <div class="kind small condensed"> |
43 {{ entry.kind.toUpperCase() }} | 43 {{ entry.kind.toUpperCase() }} |
44 </div> | 44 </div> |
45 <div class="date small condensed"> | 45 <div class="date small condensed"> |
46 {{ formatSurveyDate(entry.summary.date) }} | 46 {{ entry.summary.date | surverDate }} |
47 </div> | 47 </div> |
48 <div class="enqueued small condensed"> | 48 <div class="enqueued small condensed"> |
49 {{ formatSurveyDate(entry.enqueued.split("T")[0]) }} | 49 {{ entry.enqueued.split("T")[0] | surveyDate }} |
50 </div> | 50 </div> |
51 <div class="user small condensed">{{ entry.user }}</div> | 51 <div class="user small condensed">{{ entry.user }}</div> |
52 <div class="actions small condensed"> | 52 <div class="actions small condensed"> |
53 <font-awesome-icon | 53 <font-awesome-icon |
54 v-if="entry.warnings" | 54 v-if="entry.warnings" |
249 </template> | 249 </template> |
250 | 250 |
251 <script> | 251 <script> |
252 import { displayError } from "@/lib/errors.js"; | 252 import { displayError } from "@/lib/errors.js"; |
253 import { HTTP } from "@/lib/http"; | 253 import { HTTP } from "@/lib/http"; |
254 import { formatSurveyDate, formatDateTime } from "@/lib/date.js"; | |
255 | 254 |
256 //import { mapState } from "vuex"; | 255 //import { mapState } from "vuex"; |
257 | 256 |
258 const NODETAILS = -1; | 257 const NODETAILS = -1; |
259 const NODIFF = -1; | 258 const NODIFF = -1; |
315 }, | 314 }, |
316 refresh() { | 315 refresh() { |
317 this.reload = true; | 316 this.reload = true; |
318 this.loadImportQueue(); | 317 this.loadImportQueue(); |
319 this.loadLogs(); | 318 this.loadLogs(); |
320 }, | |
321 formatSurveyDate(date) { | |
322 return formatSurveyDate(date); | |
323 }, | |
324 formatDateTime(date) { | |
325 return formatDateTime(date); | |
326 }, | 319 }, |
327 loadLogEntries(id) { | 320 loadLogEntries(id) { |
328 HTTP.get("/imports/" + id, { | 321 HTTP.get("/imports/" + id, { |
329 headers: { "X-Gemma-Auth": localStorage.getItem("token") } | 322 headers: { "X-Gemma-Auth": localStorage.getItem("token") } |
330 }) | 323 }) |