mirror of
https://github.com/containous/traefik.git
synced 2024-12-22 13:34:03 +03:00
Add polling for getOverview in toolbar
This commit is contained in:
parent
2ce2d63bda
commit
2f18e20cb0
@ -21,7 +21,9 @@ export default {
|
||||
name: 'ToolBar',
|
||||
data () {
|
||||
return {
|
||||
loadingOverview: true
|
||||
loadingOverview: true,
|
||||
intervalRefresh: null,
|
||||
intervalRefreshTime: 5000
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
@ -65,8 +67,10 @@ export default {
|
||||
},
|
||||
created () {
|
||||
this.refreshAll()
|
||||
this.intervalRefresh = setInterval(this.onGetAll, this.intervalRefreshTime)
|
||||
},
|
||||
beforeDestroy () {
|
||||
clearInterval(this.intervalRefresh)
|
||||
this.$store.commit('core/getOverviewClear')
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user