changeset 839:157a3e42d4af

refresh for logs
author Thomas Junk <thomas.junk@intevation.de>
date Fri, 28 Sep 2018 10:46:01 +0200
parents 03e966b71a88
children 0f61bfc21041
files client/src/logs/logs.vue
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/client/src/logs/logs.vue	Fri Sep 28 10:25:09 2018 +0200
+++ b/client/src/logs/logs.vue	Fri Sep 28 10:46:01 2018 +0200
@@ -22,7 +22,7 @@
                     <h3>Last refresh: {{refreshed}}</h3>
                 </div>
                 <div class="refresh">
-                    <button class="btn btn-dark" @click="fetch('system/log/apache2/access.log', currentLog)">Refresh</button>
+                    <button class="btn btn-dark" @click="fetch(currentFile, currentLog)">Refresh</button>
                 </div>
             </div>
         </div>
@@ -96,6 +96,7 @@
     return {
       logs: null,
       currentLog: null,
+      currentFile: null,
       refreshed: null
     };
   },
@@ -108,6 +109,7 @@
           this.logs = response.data.content;
           this.currentLog = type;
           this.refreshed = new Date().toLocaleString();
+          this.currentFile = file;
         })
         .catch(error => {
           console.log(error);