mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
hide the button group if no action allowed
This commit is contained in:
parent
0d2fbe16f5
commit
b38b540616
@ -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 %}
|
||||
|
Loading…
Reference in New Issue
Block a user