Skip to content

Commit

Permalink
Merge pull request #120 from ihorvansach/issue-16
Browse files Browse the repository at this point in the history
All System Configuration settings should be on Global level
  • Loading branch information
naydav authored Apr 30, 2020
2 parents 5ca2f4f + 74cca18 commit 740cfd5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<system>
<section id="login_as_customer">
<group id="general">
<field id="disable_page_cache" translate="label comment" type="select" sortOrder="20" showInDefault="1" showInWebsite="1" showInStore="1">
<field id="disable_page_cache" translate="label comment" type="select" sortOrder="20" showInDefault="1" canRestore="1">
<label>Disable Page Cache For Admin User</label>
<source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
<comment><![CDATA[If set to "Yes", when login as customer Page Cache will be disabled.]]></comment>
Expand Down
8 changes: 4 additions & 4 deletions app/code/Magento/LoginAsCustomerUi/etc/adminhtml/system.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,18 @@
-->
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Config:etc/system_file.xsd">
<system>
<section id="login_as_customer" translate="label" type="text" sortOrder="1" showInDefault="1" showInWebsite="1" showInStore="1">
<section id="login_as_customer" translate="label" type="text" sortOrder="1" showInDefault="1" >
<class>separator-top</class>
<label>Login As Customer</label>
<tab>customer</tab>
<resource>Magento_LoginAsCustomer::config_section</resource>
<group id="general" translate="label" type="text" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="1">
<group id="general" translate="label" type="text" sortOrder="10" showInDefault="1" canRestore="1">
<label>Login As Customer Information</label>
<field id="enabled" translate="label" type="select" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="1">
<field id="enabled" translate="label" type="select" sortOrder="10" showInDefault="1" canRestore="1">
<label>Enable Extension</label>
<source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
</field>
<field id="store_view_manual_choice_enabled" translate="label comment" type="select" sortOrder="40" showInDefault="1" showInWebsite="1" showInStore="1">
<field id="store_view_manual_choice_enabled" translate="label comment" type="select" sortOrder="40" showInDefault="1" canRestore="1">
<label>Store View To Login In</label>
<source_model>Magento\LoginAsCustomerUi\Model\Config\Source\StoreViewLogin</source_model>
<comment><![CDATA[
Expand Down

0 comments on commit 740cfd5

Please sign in to comment.