Mercurial > gemma
changeset 2404:fd248ede0251
client: update staging area every 15s
Easy fix for issue220. More elaborated solution might come later with a complete notification system.
author | Markus Kottlaender <markus@intevation.de> |
---|---|
date | Thu, 28 Feb 2019 07:45:34 +0100 |
parents | 8481e6266691 |
children | ef928c63388a |
files | client/src/components/Sidebar.vue |
diffstat | 1 files changed, 8 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/client/src/components/Sidebar.vue Wed Feb 27 18:00:35 2019 +0100 +++ b/client/src/components/Sidebar.vue Thu Feb 28 07:45:34 2019 +0100 @@ -212,13 +212,15 @@ } }, mounted() { - this.$store.dispatch("imports/getStaging").catch(error => { - const { status, data } = error.response; - displayError({ - title: "Backend Error", - message: `${status}: ${data.message || data}` + setTimeout(() => { + this.$store.dispatch("imports/getStaging").catch(error => { + const { status, data } = error.response; + displayError({ + title: "Backend Error", + message: `${status}: ${data.message || data}` + }); }); - }); + }, 15000); } }; </script>