Mercurial > gemma
comparison client/src/components/importoverview/ImportOverview.vue @ 2654:3c04c8e46bd4
importoverview: reload reloads current selection
author | Thomas Junk <thomas.junk@intevation.de> |
---|---|
date | Thu, 14 Mar 2019 15:37:10 +0100 |
parents | 9f3856337f55 |
children | 0d2650dd8f62 |
comparison
equal
deleted
inserted
replaced
2653:7fd47d9641ac | 2654:3c04c8e46bd4 |
---|---|
61 * | 61 * |
62 * Author(s): | 62 * Author(s): |
63 * Thomas Junk <thomas.junk@intevation.de> | 63 * Thomas Junk <thomas.junk@intevation.de> |
64 */ | 64 */ |
65 | 65 |
66 import { mapState } from "vuex"; | 66 import { mapState, mapGetters } from "vuex"; |
67 import { displayError, displayInfo } from "@/lib/errors.js"; | 67 import { displayError, displayInfo } from "@/lib/errors.js"; |
68 import { STATES } from "@/store/imports.js"; | 68 import { STATES } from "@/store/imports.js"; |
69 | 69 |
70 export default { | 70 export default { |
71 name: "importoverviewalt", | 71 name: "importoverviewalt", |
77 return { | 77 return { |
78 loading: false | 78 loading: false |
79 }; | 79 }; |
80 }, | 80 }, |
81 computed: { | 81 computed: { |
82 ...mapState("imports", ["imports", "filters", "reviewed"]) | 82 ...mapState("imports", ["imports", "reviewed"]), |
83 ...mapGetters("imports", ["filters"]) | |
83 }, | 84 }, |
84 methods: { | 85 methods: { |
85 loadLogs() { | 86 loadLogs() { |
86 this.loading = true; | 87 this.loading = true; |
87 this.$store | 88 this.$store |
88 .dispatch("imports/getImports") | 89 .dispatch("imports/getImports", this.filters) |
89 .then(() => { | 90 .then(() => { |
90 this.loading = false; | 91 this.loading = false; |
91 }) | 92 }) |
92 .catch(error => { | 93 .catch(error => { |
93 const { status, data } = error.response; | 94 const { status, data } = error.response; |