From 749719bd2d67c624ee2d08e410a8c0054ae4c6e3 Mon Sep 17 00:00:00 2001 From: Grzegorz Sadowski Date: Thu, 7 Nov 2024 14:43:02 +0100 Subject: [PATCH] [Admin] Rename customTrigger param to snake_case notation --- .../shared/components/navbar/notifications.html.twig | 2 +- .../templates/shared/components/navbar/user.html.twig | 2 +- .../AdminBundle/templates/shared/helper/dropdown.html.twig | 6 +++--- .../AdminBundle/templates/shared/helper/table.html.twig | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/Sylius/Bundle/AdminBundle/templates/shared/components/navbar/notifications.html.twig b/src/Sylius/Bundle/AdminBundle/templates/shared/components/navbar/notifications.html.twig index 8cbeb8c837b..b9d423faed5 100644 --- a/src/Sylius/Bundle/AdminBundle/templates/shared/components/navbar/notifications.html.twig +++ b/src/Sylius/Bundle/AdminBundle/templates/shared/components/navbar/notifications.html.twig @@ -45,7 +45,7 @@ {{ dropdown.default({ class: 'dropdown-menu-card', - customTrigger: dropdown_trigger, + custom_trigger: dropdown_trigger, content: dropdown_content, direction: 'down-end' }) }} diff --git a/src/Sylius/Bundle/AdminBundle/templates/shared/components/navbar/user.html.twig b/src/Sylius/Bundle/AdminBundle/templates/shared/components/navbar/user.html.twig index e253c5991d5..7c17fb5fb4c 100644 --- a/src/Sylius/Bundle/AdminBundle/templates/shared/components/navbar/user.html.twig +++ b/src/Sylius/Bundle/AdminBundle/templates/shared/components/navbar/user.html.twig @@ -17,4 +17,4 @@ {% endset %} -{{ dropdown.list({ customTrigger: dropdown_trigger, direction: 'down-end' }, menu_items) }} +{{ dropdown.list({ custom_trigger: dropdown_trigger, direction: 'down-end' }, menu_items) }} diff --git a/src/Sylius/Bundle/AdminBundle/templates/shared/helper/dropdown.html.twig b/src/Sylius/Bundle/AdminBundle/templates/shared/helper/dropdown.html.twig index 2fd55d0356e..9075c567322 100644 --- a/src/Sylius/Bundle/AdminBundle/templates/shared/helper/dropdown.html.twig +++ b/src/Sylius/Bundle/AdminBundle/templates/shared/helper/dropdown.html.twig @@ -5,7 +5,7 @@ button: {}, class: null, content: null, - customTrigger: null, + custom_trigger: null, direction: 'down' }|merge(params) %} @@ -13,8 +13,8 @@ {% if params.direction == 'down-end' %}{% set drop = ' dropdown-menu-end' %}{% endif %}