From 5abc65a460c93781a431a99bd81c69e298342943 Mon Sep 17 00:00:00 2001 From: Jacob Dreesen Date: Mon, 16 Oct 2023 15:22:56 +0200 Subject: [PATCH] Fix messenger menu in standalone mode --- .../Resources/public/pimcore/js/resource_standalone.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/CoreShop/Bundle/MessengerBundle/Resources/public/pimcore/js/resource_standalone.js b/src/CoreShop/Bundle/MessengerBundle/Resources/public/pimcore/js/resource_standalone.js index 12cb1f5a81..8990db4e59 100644 --- a/src/CoreShop/Bundle/MessengerBundle/Resources/public/pimcore/js/resource_standalone.js +++ b/src/CoreShop/Bundle/MessengerBundle/Resources/public/pimcore/js/resource_standalone.js @@ -28,7 +28,7 @@ if (coreshop.resource === undefined) { var item = e.detail.item; var type = e.detail.type; - if (type === 'coreshop.messenger' && item.attributes.function === 'list') { + if (type === 'coreshop.coreshop' && item.id === 'coreshop_messenger' && item.attributes.function === 'list') { me.openList(); } }); @@ -43,4 +43,4 @@ if (coreshop.resource === undefined) { }, }); new coreshop.messenger.resource(); -} \ No newline at end of file +}