Queue for tag downloads
This commit is contained in:
parent
be489e9a18
commit
5e9ea6db66
6 changed files with 58 additions and 8 deletions
|
@ -1,6 +1,15 @@
|
|||
if downloader.total > 0 || downloader.outcome
|
||||
#tag-download
|
||||
if !downloader.running && !downloader.outcome
|
||||
if downloader.queuePosition > 0
|
||||
.s-notice.p16(role="status" hx-target="#tag-download" hx-select="#tag-download" hx-get=`/api/tag-download?account=${account}` hx-trigger="every 30s" hx-indicator="null")
|
||||
.d-flex.gx16.ai-center
|
||||
!= icons.get("cloud-download")
|
||||
.fl-grow1 Waiting to download...
|
||||
p.mt12.mb0 #{downloader.queuePosition} people are ahead of you in the queue.
|
||||
p.mt12.mb0 You can keep using BC Explorer and this will process in the background.
|
||||
title#title(hx-swap-oob="true") In queue | Tags | BC Explorer
|
||||
|
||||
else if !downloader.running && !downloader.outcome
|
||||
form.s-notice.s-notice__info.d-flex.ai-center.p8.gx16.pl16(role="status" hx-target="#tag-download" hx-select="#tag-download" hx-post="/api/tag-download")
|
||||
!= icons.get("info-circle")
|
||||
div Tag data needs to be downloaded. This will take a while.
|
||||
|
@ -28,7 +37,7 @@ if downloader.total > 0 || downloader.outcome
|
|||
!= icons.get("cloud-check")
|
||||
.fl-grow1 Tags downloaded.
|
||||
- downloader.resolve()
|
||||
a.s-btn.s-btn__outlined(href=and({arrange: "tag"}) hx-boost="true") Refresh
|
||||
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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue