Skip to content

Commit b180e8a

Browse files
committed
Making system configs dependent by Active field
1 parent 29cbd2f commit b180e8a

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

app/code/Magento/Signifyd/etc/adminhtml/system.xml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,22 +41,34 @@
4141
<comment><![CDATA[Your API key can be found on the <a href="http://signifyd.com/settings" target="_blank">settings page</a> in the Signifyd console]]></comment>
4242
<config_path>fraud_protection/signifyd/api_key</config_path>
4343
<backend_model>Magento\Config\Model\Config\Backend\Encrypted</backend_model>
44+
<depends>
45+
<field id="active">1</field>
46+
</depends>
4447
</field>
4548
<field id="api_url" translate="label" type="text" sortOrder="30" showInDefault="1" showInWebsite="1" showInStore="0">
4649
<label>API URL</label>
4750
<config_path>fraud_protection/signifyd/api_url</config_path>
4851
<comment>Don’t change unless asked to do so.</comment>
52+
<depends>
53+
<field id="active">1</field>
54+
</depends>
4955
</field>
5056
<field id="debug" translate="label" type="select" sortOrder="40" showInDefault="1" showInWebsite="1" showInStore="0">
5157
<label>Debug</label>
5258
<source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
5359
<config_path>fraud_protection/signifyd/debug</config_path>
60+
<depends>
61+
<field id="active">1</field>
62+
</depends>
5463
</field>
5564
<field id="webhook_url" translate="label comment" type="text" sortOrder="50" showInDefault="1" showInWebsite="1" showInStore="0">
5665
<label>Webhook URL</label>
5766
<comment><![CDATA[Your webhook URL will be used to <a href="https://app.signifyd.com/settings/notifications" target="_blank">configure</a> a guarantee completed webhook in Signifyd. Webhooks are used to sync Signifyd`s guarantee decisions back to Magento.]]></comment>
5867
<attribute type="handler_url">signifyd/webhooks/handler</attribute>
5968
<frontend_model>Magento\Signifyd\Block\Adminhtml\System\Config\Field\WebhookUrl</frontend_model>
69+
<depends>
70+
<field id="active">1</field>
71+
</depends>
6072
</field>
6173
</group>
6274
</group>

0 commit comments

Comments
 (0)