Mercurial > gemma
diff client/src/components/importoverview/LogDetail.vue @ 2799:e19fac818aab
import_overview: specifying single imports via URL should open the overview with all logentries of the according hour and open the details for the specified import
author | Thomas Junk <thomas.junk@intevation.de> |
---|---|
date | Mon, 25 Mar 2019 16:16:58 +0100 |
parents | c4821579cfaf |
children | 84effca50751 |
line wrap: on
line diff
--- a/client/src/components/importoverview/LogDetail.vue Mon Mar 25 15:42:53 2019 +0100 +++ b/client/src/components/importoverview/LogDetail.vue Mon Mar 25 16:16:58 2019 +0100 @@ -92,8 +92,6 @@ */ import { mapState } from "vuex"; -import { displayError } from "@/lib/errors.js"; -import { HTTP } from "@/lib/http.js"; export default { name: "logdetail", @@ -105,23 +103,10 @@ AdditionalLog: () => import("./AdditionalLog.vue") }, mounted() { - HTTP.get("/imports/" + this.entry.id, { - headers: { "X-Gemma-Auth": localStorage.getItem("token") } - }) - .then(response => { - this.$store.commit("imports/setCurrentDetails", response.data); - if (this.entry.state === "pending") { - this.$store.commit("imports/showAdditionalInfoFor", this.entry.id); - } - this.$store.commit("imports/showAdditionalLogsFor", this.entry.id); - }) - .catch(error => { - const { status, data } = error.response; - displayError({ - title: this.$gettext("Backend Error"), - message: `${status}: ${data.message || data}` - }); - }); + if (this.entry.state === "pending") { + this.$store.commit("imports/showAdditionalInfoFor", this.entry.id); + } + this.$store.commit("imports/showAdditionalLogsFor", this.entry.id); }, methods: { toggleAdditionalInfo() {