Skip to content

Commit

Permalink
IBX-3424: Added disabled state if only default group is added in cont… (
Browse files Browse the repository at this point in the history
  • Loading branch information
dew326 authored Jul 29, 2022
1 parent 5ba3346 commit 0340042
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,9 @@
{{ include('@ibexadesign/ui/component/popup_menu/popup_menu.html.twig', {
'items': grouped_field_defintions|keys|map(group => {
'label': group | ibexa_field_group_name,
'content_class': grouped_field_defintions[group] is not empty ? 'ibexa-popup-menu__item-content--disabled ' : '',
'content_class': grouped_field_defintions[group] is not empty or (group is same as(grouped_field_defintions|keys|first) and should_show_first)
? 'ibexa-popup-menu__item-content--disabled '
: '',
'action_attr': {
'data-related-collapse-selector': '.ibexa-field-definitions-group-' ~ group
}})
Expand Down

0 comments on commit 0340042

Please sign in to comment.