Skip to content

Commit

Permalink
Merge pull request #47 from araise-dev/fix/hide_export_on_relation_co…
Browse files Browse the repository at this point in the history
…ntent

fix: check defintion and exporters for show export button decicion
  • Loading branch information
tuxes3 authored Apr 22, 2024
2 parents 92428cb + 1ee7ad6 commit c0ee679
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Resources/views/tailwind_2/_header.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
{% endif %}
</div>
<div class="mt-4 flex sm:mt-0 sm:ml-4 space-x-2">
{% if view is defined and view.definition.hasCapability(constant('araise\\CrudBundle\\Enums\\Page::EXPORT')) %}
{% if table.exporters|length > 0 and table.option('definition') and table.option('definition').hasCapability(constant('araise\\CrudBundle\\Enums\\Page::EXPORT')) %}
<div
{{ stimulus_controller('araise/core-bundle/dropdown') }}
class="relative inline-block">
Expand Down

0 comments on commit c0ee679

Please sign in to comment.