Fix #323: Can now relaunch pending import jobs from the web interface

This commit is contained in:
Eliot Berriot 2018-07-22 12:19:51 +02:00
parent c335e4d283
commit 027b1ef385
No known key found for this signature in database
GPG Key ID: DD6965E2476E5C27
2 changed files with 3 additions and 2 deletions

View File

@ -0,0 +1 @@
Can now relaunch pending import jobs from the web interface (#323)

View File

@ -44,7 +44,7 @@
{{ stats.errored }}
<button
@click="rerun({batches: [batch.id], jobs: []})"
v-if="stats.errored > 0"
v-if="stats.errored > 0 || stats.pending > 0"
class="ui tiny basic icon button">
<i class="redo icon" />
<translate>Rerun errored jobs</translate>
@ -102,7 +102,7 @@
{{ job.status }}</span>
<button
@click="rerun({batches: [], jobs: [job.id]})"
v-if="job.status === 'errored'"
v-if="['errored', 'pending'].indexOf(job.status) > -1"
:title="labels.rerun"
class="ui tiny basic icon button">
<i class="redo icon" />