Skip to content

Commit

Permalink
IBX-6679: Disabled delete action in field definition form when transl…
Browse files Browse the repository at this point in the history
…ating content type (#1080)
  • Loading branch information
adamwojs authored Jan 10, 2024
1 parent 9f3a7fd commit 81323c4
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

{% set extra_actions = [] %}

{% if not field_definition.vars.disable_remove|default(false) %}
{% if not field_definition.vars.disable_remove|default(false) and not is_translation %}
{% set extra_actions = extra_actions|merge([
{
'icon_name': 'discard',
Expand All @@ -12,6 +12,7 @@
}
]) %}
{% endif %}

{%- embed "@ibexadesign/ui/component/collapse.html.twig" with {
'is_expanded': false,
'is_draggable': is_draggable ?? true,
Expand Down

0 comments on commit 81323c4

Please sign in to comment.