fix behavior on top collection level

This commit is contained in:
Kostiantyn Stoliarskyi 2023-06-07 14:13:37 +03:00
parent 6db1b6753b
commit 385e21190a
3 changed files with 8 additions and 3 deletions

File diff suppressed because one or more lines are too long

View File

@ -80,7 +80,12 @@
</div>
</div>
{% else %}
<div id="accordion-collapse-body-{{collection.id}}" class="hidden" aria-labelledby="accordion-collapse-heading-{{collection.id}}" >
<div id="accordion-collapse-body-{{collection.id}}" class="pl-6 pb-6 {% if not has_permission(collection, Access.U) %}filter{% endif %}"
data-dnd="dnd-sub-collection"
data-book-id="{{book.id}}"
data-entity-type="collection"
data-entity-id="{{collection.id}}"
aria-labelledby="accordion-collapse-heading-{{collection.id}}" >
</div>
{% endif %}
{% endfor %}

View File

@ -1,6 +1,6 @@
<!-- prettier-ignore -->
<div
class="ml-6 {% if not has_permission(collection, Access.U) %}filter{% endif %}"
class="pl-6 pb-1 {% if not has_permission(collection, Access.U) %}filter{% endif %}"
{% if has_permission(collection, Access.U) %}data-dnd="dnd-sub-collection"{% endif %}
{% if collection %}
data-entity-type="collection"