Mercurial > gemma
changeset 4683:c15185297fff
info about ongoing difference calculations
author | Thomas Junk <thomas.junk@intevation.de> |
---|---|
date | Wed, 16 Oct 2019 10:46:42 +0200 |
parents | 899bec1bd1c9 |
children | 00a2c761493e |
files | client/src/components/fairway/BottleneckDialogue.vue |
diffstat | 1 files changed, 12 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/client/src/components/fairway/BottleneckDialogue.vue Wed Oct 16 10:31:00 2019 +0200 +++ b/client/src/components/fairway/BottleneckDialogue.vue Wed Oct 16 10:46:42 2019 +0200 @@ -606,10 +606,18 @@ } else { message = error; } - displayError({ - title: this.$gettext("Backend Error"), - message: message - }); + if (status === 429) { + displayInfo({ + message: this.$gettext( + "There are too many ongoing difference calculations. Thanks for your patience" + ) + }); + } else { + displayError({ + title: this.$gettext("Backend Error"), + message: message + }); + } }) .finally(() => { this.$store.commit("fairwayprofile/setDifferencesLoading", false);