From 8b947c09b27f703ab916fd94436053e9c59485af Mon Sep 17 00:00:00 2001 From: Francis Hilaire Date: Fri, 9 Oct 2026 12:27:20 +0200 Subject: [PATCH] fix(delete-modal): set default label and icon for delete action --- .../templates/shared/grid/action/delete.html.twig | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/BootstrapAdminUi/templates/shared/grid/action/delete.html.twig b/src/BootstrapAdminUi/templates/shared/grid/action/delete.html.twig index db85561e..dd9774fc 100644 --- a/src/BootstrapAdminUi/templates/shared/grid/action/delete.html.twig +++ b/src/BootstrapAdminUi/templates/shared/grid/action/delete.html.twig @@ -9,4 +9,10 @@ {% set disabled = path is empty %} -{{ component('sylius_bootstrap_admin_ui:delete_modal', {id: id, path: path, label: action.label, icon: action.icon, disabled: disabled}) }} +{{ component('sylius_bootstrap_admin_ui:delete_modal', { + id: id, + path: path, + label: action.label|default('sylius.ui.delete'), + icon: action.icon|default('tabler:trash-x'), + disabled: disabled +}) }}