From 7a2fa8d98b7e88853ad63e7fdbccc19896ffb036 Mon Sep 17 00:00:00 2001
From: Kai Reinhard <K.Reinhard@micromata.de>
Date: Sun, 06 Jan 2019 22:09:25 +0000
Subject: [PATCH] fetchArchive -> fetchQueues.

---
 borgbutler-webapp/src/components/views/jobs/JobMonitorPanel.jsx |   11 +++++------
 1 files changed, 5 insertions(+), 6 deletions(-)

diff --git a/borgbutler-webapp/src/components/views/jobs/JobMonitorPanel.jsx b/borgbutler-webapp/src/components/views/jobs/JobMonitorPanel.jsx
index 9756d0b..759cab2 100644
--- a/borgbutler-webapp/src/components/views/jobs/JobMonitorPanel.jsx
+++ b/borgbutler-webapp/src/components/views/jobs/JobMonitorPanel.jsx
@@ -12,8 +12,8 @@
     };
 
     componentDidMount = () => {
-        this.fetchArchive();
-        this.interval = setInterval(() => this.fetchArchive(), 2000);
+        this.fetchQueues();
+        this.interval = setInterval(() => this.fetchQueues(), 2000);
     };
 
     componentWillUnmount() {
@@ -26,7 +26,7 @@
         });
     }
 
-    fetchArchive = () => {
+    fetchQueues = () => {
         this.setState({
             isFetching: true,
             failed: false
@@ -55,7 +55,6 @@
 
     render() {
         let content = '';
-        let todo = '';
 
         if (this.state.isFetching && !this.state.queues) {
             content = <i>Loading...</i>;
@@ -64,7 +63,7 @@
                 title={'Cannot load Repositories'}
                 description={'Something went wrong during contacting the rest api.'}
                 action={{
-                    handleClick: this.fetchArchive,
+                    handleClick: this.fetchQueues,
                     title: 'Try again'
                 }}
             />;
@@ -94,7 +93,7 @@
     constructor(props) {
         super(props);
 
-        this.fetchArchive = this.fetchArchive.bind(this);
+        this.fetchQueues = this.fetchQueues.bind(this);
         this.toggleTestMode = this.toggleTestMode.bind(this);
     }
 }

--
Gitblit v1.10.0