mirror of
https://github.com/catdevnull/transicion-desordenada-diablo
synced 2024-06-02 10:04:15 +00:00
mostrar errores en dataset mejor
This commit is contained in:
parent
c860d37db1
commit
972bec6015
|
@ -43,10 +43,6 @@
|
|||
e.distributionIdentifier === dist.identifier,
|
||||
)}
|
||||
<li class="flex px-6 py-5 justify-between items-center">
|
||||
{#if error}
|
||||
{dist.title}
|
||||
(no está en este dump porque hubo un error al bajarlo)
|
||||
{:else}
|
||||
<div>
|
||||
<h3>
|
||||
{dist.title}
|
||||
|
@ -58,17 +54,24 @@
|
|||
</span>
|
||||
{/if}
|
||||
</h3>
|
||||
{#if error}
|
||||
<small class="block text-red-700">
|
||||
No está en este dump porque hubo un error al descargarlo :(
|
||||
</small>
|
||||
{/if}
|
||||
{#if dist.fileName}
|
||||
<small>{dist.fileName}</small>
|
||||
{/if}
|
||||
</div>
|
||||
<div class="flex flex-col items-center">
|
||||
{#if !error}
|
||||
<button
|
||||
type="button"
|
||||
class="inline-flex items-center justify-center px-4 py-2 text-sm font-medium tracking-wide text-white transition-colors duration-200 bg-blue-600 rounded-md hover:bg-blue-700 focus:ring-2 focus:ring-offset-2 focus:ring-blue-700 focus:shadow-outline focus:outline-none"
|
||||
on:click={() => downloadFile(url, dataset.identifier, dist)}
|
||||
>Descargar</button
|
||||
>
|
||||
{/if}
|
||||
<a
|
||||
class="flex items-center leading-none text-gray-600 gap-1 pt-2"
|
||||
href={dist.downloadURL}
|
||||
|
@ -79,7 +82,6 @@
|
|||
Fuente
|
||||
</a>
|
||||
</div>
|
||||
{/if}
|
||||
</li>
|
||||
{/each}
|
||||
</ul>
|
||||
|
|
Loading…
Reference in a new issue