Skip to content

Commit

Permalink
fix: non-batch button actions marked as identifier holders
Browse files Browse the repository at this point in the history
  • Loading branch information
Kreyu committed Nov 8, 2023
1 parent 5499273 commit 83b66e3
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/Resources/views/themes/base.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -501,10 +501,11 @@
{% endblock %}
{% block action_button_value %}
{% set attr = {
href, target,
'data-kreyu--data-table-bundle--batch-target': 'identifierHolder'
}|merge(attr) %}
{% set attr = { href, target }|merge(attr|default({})) %}
{% if batch %}
{% set attr = { 'data-kreyu--data-table-bundle--batch-target': 'identifierHolder' }|merge(attr) %}
{% endif %}
<a {% with { attr } %}{{- block('attributes') -}}{% endwith %}>
{% with { attr: {} } %}{{- block('action_value', theme, _context) -}}{% endwith %}
Expand Down

0 comments on commit 83b66e3

Please sign in to comment.