Skip to content

Commit

Permalink
Merge pull request #19 from zans-laksa/2917-ltr-rtl-switch
Browse files Browse the repository at this point in the history
RTL / LTR Switch Config Fix
  • Loading branch information
carinadues authored Jul 22, 2021
2 parents 517d8a5 + 72ebae7 commit 31df23c
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 deletions.
4 changes: 4 additions & 0 deletions src/etc/acl.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@
id="ScandiPWA_Customization::color_customization"
title="Color customization"
/>
<resource
id="ScandiPWA_Customization::layout_direction"
title="Layout direction"
/>
</resource>
</resource>
</resource>
Expand Down
8 changes: 4 additions & 4 deletions src/etc/adminhtml/system/layout-direction.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,16 @@
*/
-->
<include xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Config:etc/system_include.xsd">
<section id="layout_direction_configuration" translate="label" type="text" sortOrder="1000" showInDefault="1" showInWebsite="0" showInStore="0">
<section id="layout_direction_configuration" translate="label" type="text" sortOrder="1000" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Layout direction</label>
<tab>scandipwa</tab>
<resource>ScandiPWA_Customization::scandipwa_config</resource>
<resource>ScandiPWA_Customization::layout_direction</resource>

<group id="layout_direction_section" translate="label" type="text" sortOrder="10" showInDefault="1" showInWebsite="0" showInStore="0">
<group id="layout_direction_section" translate="label" type="text" sortOrder="10" showInDefault="1" showInWebsite="1" showInStore="1">
<label>Layout Direction Configuration</label>
<comment>Determines layout direction for LTR and RTL languages</comment>

<field id="layout_direction" translate="label" type="select" sortOrder="10" showInDefault="1" showInWebsite="0" showInStore="0">
<field id="layout_direction" translate="label" type="select" sortOrder="10" showInDefault="1" showInWebsite="0" showInStore="1">
<label>Layout Direction</label>
<source_model>ScandiPWA\Customization\Model\LayoutDirection\Source\LayoutDirection</source_model>
</field>
Expand Down
5 changes: 5 additions & 0 deletions src/etc/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -43,5 +43,10 @@
<scope>/</scope>
</webmanifest>
</webmanifest_customization>
<layout_direction_configuration>
<layout_direction_section>
<layout_direction>ltr</layout_direction>
</layout_direction_section>
</layout_direction_configuration>
</default>
</config>

0 comments on commit 31df23c

Please sign in to comment.