Skip to content

Commit

Permalink
Hide retry failed jobs button if no jobs failed (#1097)
Browse files Browse the repository at this point in the history
  • Loading branch information
chrysanthos authored Nov 22, 2021
1 parent a96562f commit 8781566
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resources/js/screens/batches/preview.vue
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@
<h5 v-if="!ready">Batch Preview</h5>
<h5 v-if="ready">{{batch.name || batch.id}}</h5>

<button class="btn btn-outline-primary" v-on:click.prevent="retry(batch.id)">
<button class="btn btn-outline-primary" v-if="failedJobs.length > 0" v-on:click.prevent="retry(batch.id)">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" class="icon fill-primary" :class="{spin: retrying}">
<path d="M10 3v2a5 5 0 0 0-3.54 8.54l-1.41 1.41A7 7 0 0 1 10 3zm4.95 2.05A7 7 0 0 1 10 17v-2a5 5 0 0 0 3.54-8.54l1.41-1.41zM10 20l-4-4 4-4v8zm0-12V0l4 4-4 4z"/>
</svg>
Expand Down

0 comments on commit 8781566

Please sign in to comment.