Display error when remote repositories can't be fetched
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
891f36f6f3
commit
093c58f006
2 changed files with 17 additions and 9 deletions
|
|
@ -165,14 +165,18 @@
|
|||
{/each}
|
||||
</select>
|
||||
<label>Dépôt GitLab pour ce travail :</label>
|
||||
<button
|
||||
type="submit"
|
||||
class="mt-2 btn btn-primary"
|
||||
disable={submitInProgress || readonly || !repo_used || !repo_used.uri}
|
||||
>
|
||||
Utiliser ce dépôt
|
||||
</button>
|
||||
{:catch err}
|
||||
<div class="text-danger">
|
||||
{err.message} Veuillez réessyer dans quelques instants…<br>Si le problème persiste, contactez votre professeur.
|
||||
</div>
|
||||
{/await}
|
||||
<button
|
||||
type="submit"
|
||||
class="mt-2 btn btn-primary"
|
||||
disable={submitInProgress || readonly || !repo_used || !repo_used.uri}
|
||||
>
|
||||
Utiliser ce dépôt
|
||||
</button>
|
||||
<button
|
||||
type="button"
|
||||
class="mt-2 btn btn-info"
|
||||
|
|
|
|||
Reference in a new issue