Skip to content

Commit

Permalink
IBX-6680: Disabled add field action in field definition form when tra…
Browse files Browse the repository at this point in the history
…nslating content type
  • Loading branch information
adamwojs committed Jan 10, 2024
1 parent 6369d3a commit 5f47e89
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
} -%}
{% block body_content_wrapper %}
<div
class="ibexa-collapse__body-content ibexa-content-type-edit__field-definition-drop-zone"
class="ibexa-collapse__body-content {% if is_field_definition_draggable %}ibexa-content-type-edit__field-definition-drop-zone{% endif %}"
data-placeholder="{{ include('@ibexadesign/content_type/field_definitions_placeholder.html.twig')|e('html_attr') }}"
>
{% block body_content %}
Expand All @@ -84,8 +84,8 @@
{{ 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 or (group is same as(grouped_field_defintions|keys|first) and should_show_first)
? '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 5f47e89

Please sign in to comment.