Add UI for viewing storage space limit

This commit is contained in:
2021-09-07 17:09:52 +02:00
parent ebc7bc34e4
commit f4a9d0595a
6 changed files with 112 additions and 23 deletions

View File

@@ -81,7 +81,7 @@ const get_reports = async () => {
onMount(() => {
let start = new Date()
start.setDate(start.getDate() - 14)
start.setDate(start.getDate() - 28)
let end = new Date()
startPicker.valueAsNumber = start.getTime()

View File

@@ -118,7 +118,10 @@ export const start = () => {
resp = JSON.parse(xhr.response)
}
if (resp.value == "file_too_large" || resp.value == "ip_banned" || tries === 3) {
if (resp.value == "file_too_large"
|| resp.value == "ip_banned"
|| resp.value == "user_out_of_space"
|| tries === 3) {
// Permanent failure
on_failure(resp.value, resp.message)
} else {