Skip to content

Commit 81323c4

Browse files
authored
IBX-6679: Disabled delete action in field definition form when translating content type (#1080)
1 parent 9f3a7fd commit 81323c4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/bundle/Resources/views/themes/admin/content_type/field_definition.html.twig

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
{% set extra_actions = [] %}
55

6-
{% if not field_definition.vars.disable_remove|default(false) %}
6+
{% if not field_definition.vars.disable_remove|default(false) and not is_translation %}
77
{% set extra_actions = extra_actions|merge([
88
{
99
'icon_name': 'discard',
@@ -12,6 +12,7 @@
1212
}
1313
]) %}
1414
{% endif %}
15+
1516
{%- embed "@ibexadesign/ui/component/collapse.html.twig" with {
1617
'is_expanded': false,
1718
'is_draggable': is_draggable ?? true,

0 commit comments

Comments
 (0)