Skip to content

Commit

Permalink
remove redundant alerts
Browse files Browse the repository at this point in the history
  • Loading branch information
vladimir-8 committed Dec 10, 2024
1 parent f8e54c7 commit 8cfe62b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 16 deletions.
10 changes: 0 additions & 10 deletions templates/_partials/delivery/order_alert.html.twig

This file was deleted.

6 changes: 0 additions & 6 deletions templates/delivery/item.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,4 @@
{% endif %}

{% block alerts %}
{% if is_granted('ROLE_DISPATCHER') and delivery.order is not empty %}
{% include '_partials/delivery/order_alert.html.twig' with { order: delivery.order } %}
{% endif %}
{% if is_granted('ROLE_DISPATCHER') and delivery.order is not empty and delivery.order.subscription is not empty %}
{% include '_partials/delivery/subscription_alert.html.twig' with { subscription: delivery.order.subscription } %}
{% endif %}
{% endblock %}

0 comments on commit 8cfe62b

Please sign in to comment.