Skip to content

Commit 105d165

Browse files
Ante Prkacinpspanja
authored andcommitted
NGSTACK-991 always show tooltip for some location if its parent is invisible
1 parent f594d37 commit 105d165

File tree

1 file changed

+6
-5
lines changed
  • bundle/Resources/views/themes/ngadmin/content/tab/locations

1 file changed

+6
-5
lines changed

bundle/Resources/views/themes/ngadmin/content/tab/locations/tab.html.twig

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -68,15 +68,16 @@
6868
</span>
6969
</div>
7070

71-
{% set isParentLocationInvisible = location.parentLocation is defined and location.parentLocation.invisible %}
72-
<label class="ibexa-content-locations__visibility-toggler-label {{ (location.explicitlyHidden or not isParentLocationInvisible) ? 'ibexa-content-locations__visibility-toggler-label--hidden' }}">
73-
{% if isParentLocationInvisible %}
71+
<label class="ibexa-content-locations__visibility-toggler-label" style="display: none"></label>
72+
73+
{% if location.parentLocation is defined and location.parentLocation.invisible %}
74+
<label class="ibexa-content-locations__visibility-toggler-label">
7475
<svg class="ibexa-icon ibexa-icon--small-medium">
7576
<use xlink:href="{{ ibexa_icon_path('system-information') }}"></use>
7677
</svg>
7778
{{ 'content.tab.locations.visibility_toggle'|trans({}, 'locationview')|desc('One of the ancestors is hidden') }}
78-
{% endif %}
79-
</label>
79+
</label>
80+
{% endif %}
8081
</div>
8182
{% endset %}
8283

0 commit comments

Comments
 (0)