|
19 | 19 | </field>
|
20 | 20 | <field id="api_url" translate="label" type="text" sortOrder="2" showInDefault="1" showInWebsite="1" showInStore="1" canRestore="1">
|
21 | 21 | <label>New Relic API URL</label>
|
| 22 | + <depends> |
| 23 | + <field id="enable">1</field> |
| 24 | + </depends> |
22 | 25 | </field>
|
23 | 26 | <field id="insights_api_url" translate="label comment" type="text" sortOrder="3" showInDefault="1" showInWebsite="1" showInStore="1" canRestore="1">
|
24 | 27 | <label>Insights API URL</label>
|
25 | 28 | <comment>Use %s to replace the account ID in the URL</comment>
|
| 29 | + <depends> |
| 30 | + <field id="enable">1</field> |
| 31 | + </depends> |
26 | 32 | </field>
|
27 | 33 | <field id="account_id" translate="label comment" type="text" sortOrder="4" showInDefault="1" showInWebsite="1" showInStore="1">
|
28 | 34 | <label>New Relic Account ID</label>
|
29 | 35 | <comment><![CDATA["Need a New Relic account? <a href="http://www.newrelic.com/magento" target="_blank">Click here to get one]]></comment>
|
| 36 | + <depends> |
| 37 | + <field id="enable">1</field> |
| 38 | + </depends> |
30 | 39 | </field>
|
31 | 40 | <field id="app_id" translate="label comment" type="text" sortOrder="5" showInDefault="1" showInWebsite="1" showInStore="1">
|
32 | 41 | <label>New Relic Application ID</label>
|
33 | 42 | <comment>This can commonly be found at the end of the URL when viewing the APM after "/applications/"</comment>
|
| 43 | + <depends> |
| 44 | + <field id="enable">1</field> |
| 45 | + </depends> |
34 | 46 | </field>
|
35 | 47 | <field id="api" translate="label comment" type="obscure" sortOrder="6" showInDefault="1" showInWebsite="1" showInStore="1">
|
36 | 48 | <label>New Relic API Key</label>
|
37 | 49 | <backend_model>Magento\Config\Model\Config\Backend\Encrypted</backend_model>
|
38 | 50 | <comment>This is located by navigating to Events -> Deployments from the New Relic APM website</comment>
|
| 51 | + <depends> |
| 52 | + <field id="enable">1</field> |
| 53 | + </depends> |
39 | 54 | </field>
|
40 | 55 | <field id="insights_insert_key" translate="label comment" type="obscure" sortOrder="7" showInDefault="1" showInWebsite="1" showInStore="1">
|
41 | 56 | <label>Insights API Key</label>
|
42 | 57 | <backend_model>Magento\Config\Model\Config\Backend\Encrypted</backend_model>
|
43 | 58 | <comment>Generated under Insights in Manage data -> API Keys -> Insert Keys</comment>
|
| 59 | + <depends> |
| 60 | + <field id="enable">1</field> |
| 61 | + </depends> |
44 | 62 | </field>
|
45 | 63 | <field id="app_name" translate="label comment" type="text" sortOrder="8" showInDefault="1" showInWebsite="1" showInStore="1">
|
46 | 64 | <label>New Relic Application Name</label>
|
47 | 65 | <comment>This is located by navigating to Settings from the New Relic APM website</comment>
|
| 66 | + <depends> |
| 67 | + <field id="enable">1</field> |
| 68 | + </depends> |
48 | 69 | </field>
|
49 | 70 | <field id="separate_apps" translate="label comment" type="select" sortOrder="9" showInDefault="1" showInWebsite="1" showInStore="1">
|
50 | 71 | <label>Send Adminhtml and Frontend as Separate Apps</label>
|
51 | 72 | <source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
|
52 | 73 | <comment>In addition to the main app (which includes all PHP execution), separate apps for adminhtml and frontend will be created. Requires New Relic Application Name to be set.</comment>
|
| 74 | + <depends> |
| 75 | + <field id="enable">1</field> |
| 76 | + </depends> |
53 | 77 | </field>
|
54 | 78 | </group>
|
55 | 79 | <group id="cron" translate="label" type="text" sortOrder="2" showInDefault="1" showInWebsite="1" showInStore="1">
|
|
0 commit comments