Mercurial > gemma
diff client/src/components/Sidebar.vue @ 5396:064ac1014713 extented-report
Make DQL-Downloads a bit more dynamic
author | Thomas Junk <thomas.junk@intevation.de> |
---|---|
date | Fri, 02 Jul 2021 17:14:04 +0200 |
parents | 6b054b91d9b2 |
children | 7768f14f6535 |
line wrap: on
line diff
--- a/client/src/components/Sidebar.vue Fri Jul 02 14:16:02 2021 +0200 +++ b/client/src/components/Sidebar.vue Fri Jul 02 17:14:04 2021 +0200 @@ -148,6 +148,17 @@ } }, mounted() { + this.$store.dispatch("importschedule/loadAvailableReports").catch(error => { + let message = "Backend not reachable"; + if (error.response) { + const { status, data } = error.response; + message = `${status}: ${data.message || data}`; + } + displayError({ + title: this.$gettext("Backend Error"), + message: message + }); + }); const updateIndicators = () => { if (this.isWaterwayAdmin) { this.$store