Skip to content
Snippets Groups Projects
Verified Commit 027b1ef3 authored by Eliot Berriot's avatar Eliot Berriot
Browse files

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

parent c335e4d2
No related branches found
No related tags found
No related merge requests found
Can now relaunch pending import jobs from the web interface (#323)
...@@ -44,7 +44,7 @@ ...@@ -44,7 +44,7 @@
{{ stats.errored }} {{ stats.errored }}
<button <button
@click="rerun({batches: [batch.id], jobs: []})" @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"> class="ui tiny basic icon button">
<i class="redo icon" /> <i class="redo icon" />
<translate>Rerun errored jobs</translate> <translate>Rerun errored jobs</translate>
...@@ -102,7 +102,7 @@ ...@@ -102,7 +102,7 @@
{{ job.status }}</span> {{ job.status }}</span>
<button <button
@click="rerun({batches: [], jobs: [job.id]})" @click="rerun({batches: [], jobs: [job.id]})"
v-if="job.status === 'errored'" v-if="['errored', 'pending'].indexOf(job.status) > -1"
:title="labels.rerun" :title="labels.rerun"
class="ui tiny basic icon button"> class="ui tiny basic icon button">
<i class="redo icon" /> <i class="redo icon" />
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment