1
0
Fork 0
mirror of https://git.sr.ht/~cadence/bibliogram synced 2026-03-01 18:31:35 +00:00

Show instance state on homepage

This commit is contained in:
Cadence Fish 2020-02-01 21:17:10 +13:00
parent 3108c68fd5
commit 4426c2f206
No known key found for this signature in database
GPG key ID: 81015DF9AA8607E1
5 changed files with 24 additions and 3 deletions

View file

@ -32,6 +32,13 @@ class RequestHistory {
}
return result
}
testNoneBlocked() {
for (const value of this.store.values()) {
if (value.lastRequestSuccessful === false) return false
}
return true
}
}
module.exports = RequestHistory