hide the button group if no action allowed

This commit is contained in:
Matthias 2022-03-30 01:31:39 +02:00
parent 0d2fbe16f5
commit b38b540616
No known key found for this signature in database
GPG Key ID: F50EF5741D33E076

View File

@ -23,6 +23,8 @@
<span class='fas fa-shopping-cart'/>
</button>
{% endif %}
{% define perms.company.change_company or perms.company.delete_company as has_permission %}
{% if not company.is_deleted and has_permission %}
<button id='company-edit-actions' title='{% trans "Company actions" %}' class='btn btn-outline-secondary dropdown-toggle' type='button' data-bs-toggle='dropdown'>
<span class='fas fa-tools'></span> <span class='caret'></span>
</button>
@ -38,6 +40,7 @@
</a></li>
{% endif %}
</ul>
{% endif %}
{% endblock actions %}
{% block thumbnail %}