Allow retrying failed tag sync

This commit is contained in:
Cadence Ember 2025-04-16 17:12:14 +12:00
parent 3b22fe98f2
commit 199a44a8a7
3 changed files with 15 additions and 11 deletions

View file

@ -29,7 +29,7 @@ if downloader.total > 0 || downloader.outcome
.s-progress--bar(style=`width: ${percentage}`)
.d-flex.jc-space-between.fs-fine
span= percentage
span= downloader.total
span processed #{downloader.processed} of #{downloader.total}
else if downloader.outcome === "Success"
.s-notice.s-notice__success.p8.gx16.pl16.d-flex.ai-center
@ -40,7 +40,9 @@ if downloader.total > 0 || downloader.outcome
a.s-btn.s-btn__outlined(href=and({arrange: "tag", shape: "grid"})) Refresh
else
.s-notice.s-notice__danger.p8.gx16.pl16.d-flex.ai-center
form.s-notice.s-notice__danger.d-flex.ai-center.p8.gx16.pl16(role="status" hx-target="#tag-download" hx-select="#tag-download" hx-post="/api/tag-download")
title#title(hx-swap-oob="true") * Tag download failed! | BC Explorer
!= icons.get("cloud-xmark")
.fl-grow1= downloader.outcome
input(type="hidden" name="account" value=account)
button.s-btn.s-btn__outlined Try again