Mercurial > gemma
comparison client/src/components/Sidebar.vue @ 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 | 8d025f85a3fe |
children | b72d3da6409c |
comparison
equal
deleted
inserted
replaced
2398:8481e6266691 | 2404:fd248ede0251 |
---|---|
210 this.routeName == "mainview" | 210 this.routeName == "mainview" |
211 ); | 211 ); |
212 } | 212 } |
213 }, | 213 }, |
214 mounted() { | 214 mounted() { |
215 this.$store.dispatch("imports/getStaging").catch(error => { | 215 setTimeout(() => { |
216 const { status, data } = error.response; | 216 this.$store.dispatch("imports/getStaging").catch(error => { |
217 displayError({ | 217 const { status, data } = error.response; |
218 title: "Backend Error", | 218 displayError({ |
219 message: `${status}: ${data.message || data}` | 219 title: "Backend Error", |
220 message: `${status}: ${data.message || data}` | |
221 }); | |
220 }); | 222 }); |
221 }); | 223 }, 15000); |
222 } | 224 } |
223 }; | 225 }; |
224 </script> | 226 </script> |
225 | 227 |
226 <style lang="scss" scoped> | 228 <style lang="scss" scoped> |