From 45289f657e605ce6132e520e5d4c781e1d63ce57 Mon Sep 17 00:00:00 2001 From: Mateusz Zalewski Date: Tue, 24 Oct 2023 08:56:31 +0200 Subject: [PATCH] Improve Saferpay menu --- src/TransactionLog/Menu/AdminMenuListener.php | 3 ++- translations/messages.en.yaml | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/TransactionLog/Menu/AdminMenuListener.php b/src/TransactionLog/Menu/AdminMenuListener.php index 58eab744..75063e23 100644 --- a/src/TransactionLog/Menu/AdminMenuListener.php +++ b/src/TransactionLog/Menu/AdminMenuListener.php @@ -14,7 +14,7 @@ public function addAdminMenuItems(MenuBuilderEvent $event): void $newSubmenu = $menu ->addChild('commerce_weavers_sylius_saferpay_plugin') - ->setLabel('commerce_weavers_saferpay.ui.plugin_name') + ->setLabel('commerce_weavers_saferpay.ui.saferpay') ; $newSubmenu @@ -22,6 +22,7 @@ public function addAdminMenuItems(MenuBuilderEvent $event): void 'route' => 'commerce_weavers_saferpay_admin_transaction_log_index', ]) ->setLabel('commerce_weavers_saferpay.ui.transaction_logs') + ->setLabelAttribute('icon', 'list') ; } } diff --git a/translations/messages.en.yaml b/translations/messages.en.yaml index 74baebf5..2a5819a4 100644 --- a/translations/messages.en.yaml +++ b/translations/messages.en.yaml @@ -16,8 +16,8 @@ commerce_weavers_saferpay: saferpay: 'Saferpay' sandbox: 'Sandbox' terminal_id: 'Terminal Id' - transaction_log: 'Saferpay Transaction Log' - transaction_logs: 'Saferpay Transaction Logs' + transaction_log: 'Transaction Log' + transaction_logs: 'Transaction Logs' type: 'Type' type_info: 'Informational' type_error: 'Error'