Skip to content

Commit

Permalink
feat: add fetch remote interval
Browse files Browse the repository at this point in the history
  • Loading branch information
lightmyfire17 committed Aug 28, 2020
1 parent f952da7 commit 56ca455
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions frontend/src/layout/Dashboard/Dashboard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ export default {
data: () => {
return {};
},
destroyed() {
clearInterval(this.remoteInterval);
},
mounted() {
this.enableNotifications();
this.enableDownloadEvents();
Expand All @@ -41,6 +44,8 @@ export default {
this.updateRemoteVersion();
this.getNumberOfRemoteClient();
this.remoteInterval = setInterval(this.fetchRemoteFiles, 10000);
},
methods: {
fetchLocalFiles() {
Expand Down

0 comments on commit 56ca455

Please sign in to comment.