Show notices for server errors
This commit is contained in:
parent
62e7ccf17b
commit
b1ab998a4b
4 changed files with 38 additions and 9 deletions
|
@ -1,6 +1,13 @@
|
|||
#collection-sync.s-notice.s-notice__success
|
||||
.d-flex.ai-center.gx16
|
||||
!= icons.get("check-circle")
|
||||
.fl-grow1 Imported #{storedItemCount}/#{count} purchases and #{storedTrackCount} tracks.
|
||||
.mt16
|
||||
a.s-link(href=`/${account}/`) Check it out
|
||||
if !error
|
||||
#collection-sync.s-notice.s-notice__success
|
||||
.d-flex.ai-center.gx16
|
||||
!= icons.get("check-circle")
|
||||
.fl-grow1 Imported #{storedItemCount}/#{count} purchases and #{storedTrackCount} tracks.
|
||||
.mt16
|
||||
a.s-link(href=`/${account}/`) Check it out
|
||||
|
||||
else
|
||||
#collection-sync.s-notice.s-notice__danger
|
||||
.d-flex.ai-center.gx16
|
||||
!= icons.get("xmark-circle")
|
||||
.fl-grow1= error.toString()
|
||||
|
|
|
@ -158,3 +158,12 @@ html
|
|||
|
||||
#player-container.ps-fixed.r16.ws340.z-modal(class="md:t64 md:l16 md:r16 md:b16" hx-preserve="true")
|
||||
#player
|
||||
|
||||
aside.s-modal#server-error(aria-hidden="true")
|
||||
.s-modal--dialog
|
||||
h1.s-modal--header Server error
|
||||
pre.overflow-auto#server-error-content
|
||||
p If you know what causes this error, #[a(href="https://cadence.moe/contact") please tell Cadence about it!]
|
||||
button.s-modal--close.s-btn.s-btn__muted(aria-label="Close" type="button" onclick="hideError()")!= icons.get("xmark")
|
||||
.s-modal--footer
|
||||
button.s-btn.s-btn__outlined.s-btn__muted(type="button" onclick="hideError()") OK
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue