diff --git a/frontend/src/layout/Dashboard/Dashboard.vue b/frontend/src/layout/Dashboard/Dashboard.vue index ea1eea1..99f0857 100644 --- a/frontend/src/layout/Dashboard/Dashboard.vue +++ b/frontend/src/layout/Dashboard/Dashboard.vue @@ -25,6 +25,9 @@ export default { data: () => { return {}; }, + destroyed() { + clearInterval(this.remoteInterval); + }, mounted() { this.enableNotifications(); this.enableDownloadEvents(); @@ -41,6 +44,8 @@ export default { this.updateRemoteVersion(); this.getNumberOfRemoteClient(); + + this.remoteInterval = setInterval(this.fetchRemoteFiles, 10000); }, methods: { fetchLocalFiles() {