Fix requests display for web instance

This commit is contained in:
lowlighter committed 2021-03-21 17:51:45 +01:00
1 parent 861a0e5663
commit 89182c62c0
3 files changed
+2 -6

No files matched your search

-4
View File
@@ -23,10 +23,6 @@
//GitHub limit tracker
const {data:requests} = await axios.get("/.requests")
this.requests = requests
setInterval(async () => {
const {data:requests} = await axios.get("/.requests")
this.requests = requests
}, 15000)
//Generate placeholder
this.mock({timeout:200})
setInterval(() => {
+1 -1
View File
@@ -49,7 +49,7 @@
<button @click="generate" :disabled="(!user)||(generated.pending)">
{{ generated.pending ? 'Working on it :)' : 'Generate your metrics!' }}
</button>
<small>{{ requests.limit }} GitHub requests remaining</small>
<small>{{ requests.remaining }} GitHub requests remaining</small>
<div class="configuration">
<b>🖼️ Template</b>