Skip to content

Commit

Permalink
Merge pull request #18 from patchlevel/failed-status
Browse files Browse the repository at this point in the history
add failed status support
  • Loading branch information
DavidBadura authored Dec 31, 2024
2 parents ff82803 + 596b56e commit 4a9571f
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions templates/subscription/show.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,10 @@
{{ _self.badge('Detached', 'fill-gray-500') }}
{% elseif subscription.status.value == 'error' %}
{{ _self.badge('Error', 'fill-red-500') }}
{% elseif subscription.status.value == 'failed' %}
{{ _self.badge('Failed', 'fill-red-500') }}
{% else %}
{{ _self.badge(subscription.status.value, 'fill-gray-500') }}
{% endif %}
</td>
<td class="whitespace-nowrap px-3 py-4 text-sm text-gray-500">
Expand Down Expand Up @@ -170,12 +174,12 @@
{{ heroicon('play-circle', 'h-5 w-5') }}
</a>
{% endif %}
{% if subscription.status.value in ['paused', 'error', 'finished', 'detached'] %}
{% if subscription.status.value in ['paused', 'error', 'finished', 'detached', 'failed'] %}
<a href="{{ path('patchlevel_eventsourcingadmin_subscription_reactivate', {id: subscription.id}) }}" class="text-gray-500 hover:text-gray-900">
{{ heroicon('play-circle', 'h-5 w-5') }}
</a>
{% endif %}
{% if subscription.status.value in ['paused', 'error', 'detached'] %}
{% if subscription.status.value in ['paused', 'error', 'detached', 'failed'] %}
<a href="{{ path('patchlevel_eventsourcingadmin_subscription_remove', {id: subscription.id}) }}" class="text-gray-500 hover:text-gray-900">
{{ heroicon('trash', 'h-5 w-5') }}
</a>
Expand Down

0 comments on commit 4a9571f

Please sign in to comment.