Rework error messages for failed playcount/bio fetch

This commit is contained in:
Claudio Ortolina
2024-12-27 17:55:34 +00:00
parent 2e8d72fe8f
commit 1a0e505e51
3 changed files with 35 additions and 23 deletions
@@ -15,7 +15,13 @@
</:loading>
<:failed :let={_failure}>
<div class="mt-4 text-sm leading-5 text-zinc-500 dark:text-zinc-400">
{gettext("There was an error loading the play count")}
<.icon
name="hero-exclamation-triangle"
class="-mt-1 mr-1 ml-2 h-5 w-5"
aria-hidden="true"
data-slot="icon"
/>
{gettext("Error loading play count")}
</div>
</:failed>
<span :if={artist_info.play_count > 0}>
@@ -44,7 +50,13 @@
</:loading>
<:failed :let={_failure}>
<div class="mt-4 text-sm leading-5 text-zinc-500 dark:text-zinc-400">
{gettext("There was an error loading the biography")}
<.icon
name="hero-exclamation-triangle"
class="-mt-1 mr-1 h-5 w-5"
aria-hidden="true"
data-slot="icon"
/>
{gettext("Error loading biography")}
</div>
</:failed>
<details