diff --git a/AdobeStockImageAdminUi/Plugin/AddSearchButton.php b/AdobeStockImageAdminUi/Plugin/AddSearchButton.php index 69c212be8236..4a6308b38c59 100644 --- a/AdobeStockImageAdminUi/Plugin/AddSearchButton.php +++ b/AdobeStockImageAdminUi/Plugin/AddSearchButton.php @@ -60,7 +60,8 @@ public function beforeSetLayout(Container $subject, LayoutInterface $layout): vo [ 'class' => 'action-secondary', 'label' => __('Search Adobe Stock'), - 'type' => 'button', + 'type' => 'button', + 'onclick' => 'jQuery(".adobe-search-images-modal")[0].trigger("openModal");' ], 0, 0, diff --git a/AdobeStockImageAdminUi/view/adminhtml/templates/panel.phtml b/AdobeStockImageAdminUi/view/adminhtml/templates/panel.phtml index fa881f6e6c5b..1dfb613715be 100644 --- a/AdobeStockImageAdminUi/view/adminhtml/templates/panel.phtml +++ b/AdobeStockImageAdminUi/view/adminhtml/templates/panel.phtml @@ -30,21 +30,3 @@ } } - -