diff options
author | Marius David Wieschollek <passwords.public@mdns.eu> | 2020-12-24 14:00:39 +0300 |
---|---|---|
committer | Marius David Wieschollek <passwords.public@mdns.eu> | 2020-12-24 14:00:39 +0300 |
commit | e95b853af399fbc114da89d75c7082ad163679e5 (patch) | |
tree | f4b7154389ffcf8c5b8982483706ddfd46a375b0 /src/vue | |
parent | 4f0cefcfabba7e76e3d7aff2ca5f6225008afa31 (diff) |
Move error log fetch to own controller
Signed-off-by: Marius David Wieschollek <passwords.public@mdns.eu>
Diffstat (limited to 'src/vue')
-rw-r--r-- | src/vue/Components/Options/Debug.vue | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/src/vue/Components/Options/Debug.vue b/src/vue/Components/Options/Debug.vue index 82f531a..4548dfe 100644 --- a/src/vue/Components/Options/Debug.vue +++ b/src/vue/Components/Options/Debug.vue @@ -70,8 +70,8 @@ this.loadData(); if(!this.interval) { this.interval = setInterval(() => { - this.loadData(); - }, 5000); + this.loadErrors(); + }, 3000); } }, @@ -84,8 +84,8 @@ this.loadData(); if(!this.interval) { this.interval = setInterval(() => { - this.loadData(); - }, 5000); + this.loadErrors(); + }, 3000); } }, @@ -103,14 +103,16 @@ this.hidden = data.hidden; } - if(data.hasOwnProperty('errors')) { - this.errors = data.errors; - } - if(data.hasOwnProperty('settings')) { this.settings = data.settings; } }); + this.loadErrors(); + }, + loadErrors() { + MessageService.send('options.debug.errors').then((reply) => { + this.errors = reply.getPayload(); + }); }, getTitle(error) { if(error.details) { |