Better handling of non-rendu
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
32a1fd3688
commit
5130b2d38e
@ -13,12 +13,12 @@
|
||||
{#await getUserRendu(work.submission_url, $user)}
|
||||
<div class="spinner-border spinner-border-sm" role="status"></div>
|
||||
{:then rendu}
|
||||
<i class="bi text-success bi-check" title={"Rendu effectué : " + JSON.stringify(rendu)}></i>
|
||||
{:catch error}
|
||||
{#if error === null}
|
||||
{#if rendu === null}
|
||||
<i class="bi text-danger bi-exclamation-circle-fill" title="Rendu non réceptionné"></i>
|
||||
{:else}
|
||||
<i class="bi text-warning bi-exclamation-triangle-fill" title={error}></i>
|
||||
<i class="bi text-success bi-check" title={"Rendu effectué : " + JSON.stringify(rendu)}></i>
|
||||
{/if}
|
||||
{:catch error}
|
||||
<i class="bi text-warning bi-exclamation-triangle-fill" title={error}></i>
|
||||
{/await}
|
||||
{/if}
|
||||
|
Reference in New Issue
Block a user