Mercurial > gemma
diff client/src/components/Sidebar.vue @ 1793:c0532a94a0b5
importlog links forward to the according importqueue-entry
author | Thomas Junk <thomas.junk@intevation.de> |
---|---|
date | Mon, 14 Jan 2019 12:32:43 +0100 |
parents | e70b7b8e7b74 |
children | 67340ceecc5f |
line wrap: on
line diff
--- a/client/src/components/Sidebar.vue Mon Jan 14 12:29:19 2019 +0100 +++ b/client/src/components/Sidebar.vue Mon Jan 14 12:32:43 2019 +0100 @@ -165,13 +165,16 @@ props: ["routeName"], watch: { $route() { - const { review } = this.$route.query; + const { review, importlog } = this.$route.query; if (review) { this.toggleContextBox("staging"); this.$store.commit("imports/setImportToReview", review); } else { this.$store.commit("imports/setImportToReview", -99); } + if (importlog) { + this.$router.push("/importqueue/" + importlog); + } } }, computed: {