Skip to content

Commit e500685

Browse files
committed
#188: Need to add notification message that reCAPCTHA type should be configured before enabling it
1 parent 76d71be commit e500685

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

ReCaptchaAdminUi/etc/adminhtml/system.xml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@
2222
<group id="type_for" translate="label" type="text" sortOrder="1000" showInDefault="1" showInWebsite="0"
2323
showInStore="0">
2424
<label>Admin Panel</label>
25+
<field id="recaptcha_backend_info_heading" translate="label" sortOrder="100" showInDefault="1"
26+
showInWebsite="0" showInStore="0" >
27+
<frontend_model>Magento\ReCaptchaAdminUi\Block\Adminhtml\System\Config\Form\Field\Notice</frontend_model>
28+
</field>
2529
</group>
2630
</section>
2731

@@ -35,6 +39,10 @@
3539
<group id="type_for" translate="label" type="text" sortOrder="1000" showInDefault="1" showInWebsite="1"
3640
showInStore="0">
3741
<label>Storefront</label>
42+
<field id="recaptcha_frontend_info_heading" translate="label" sortOrder="100" showInDefault="1"
43+
showInWebsite="1" showInStore="0">
44+
<frontend_model>Magento\ReCaptchaAdminUi\Block\Adminhtml\System\Config\Form\Field\Notice</frontend_model>
45+
</field>
3846
</group>
3947
</section>
4048
</system>

ReCaptchaCustomer/etc/adminhtml/system.xml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,6 @@
1010
<system>
1111
<section id="recaptcha_frontend">
1212
<group id="type_for">
13-
<field id="recaptcha_frontend_info_heading" translate="label" sortOrder="100" showInDefault="1"
14-
showInWebsite="1" showInStore="0">
15-
<frontend_model>Magento\ReCaptchaAdminUi\Block\Adminhtml\System\Config\Form\Field\Notice</frontend_model>
16-
</field>
1713
<field id="customer_login" translate="label" type="select" sortOrder="110" showInDefault="1"
1814
showInWebsite="1" showInStore="0" canRestore="1">
1915
<label>Enable for Customer Login</label>

ReCaptchaUser/etc/adminhtml/system.xml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,6 @@
1010
<system>
1111
<section id="recaptcha_backend">
1212
<group id="type_for">
13-
<field id="recaptcha_backend_info_heading" translate="label" sortOrder="100" showInDefault="1"
14-
showInWebsite="0" showInStore="0" >
15-
<frontend_model>Magento\ReCaptchaAdminUi\Block\Adminhtml\System\Config\Form\Field\Notice</frontend_model>
16-
</field>
1713
<field id="user_login" translate="label" type="select" sortOrder="110" showInDefault="1"
1814
showInWebsite="0" showInStore="0" canRestore="1">
1915
<label>Enable for Login</label>

0 commit comments

Comments
 (0)