Skip to content

Commit

Permalink
magento#1116 Refactored modularity of the InventoryAdminUi module
Browse files Browse the repository at this point in the history
  • Loading branch information
Roman Glushko committed May 12, 2018
1 parent 045d9a5 commit 4a2051d
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/
declare(strict_types=1);

namespace Magento\Inventory\Model\OptionSource;
namespace Magento\InventoryAdminUi\Model\OptionSource;

use Magento\Framework\Data\OptionSourceInterface;
use Magento\Shipping\Model\Config;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/
declare(strict_types=1);

namespace Magento\Inventory\Model\OptionSource;
namespace Magento\InventoryAdminUi\Model\OptionSource;

use Magento\Directory\Model\ResourceModel\Region\CollectionFactory;
use Magento\Framework\Data\OptionSourceInterface;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

use Magento\Framework\View\Element\UiComponent\ContextInterface;
use Magento\Framework\View\Element\UiComponentFactory;
use Magento\Inventory\Model\OptionSource\RegionSource;
use Magento\InventoryAdminUi\Model\OptionSource\RegionSource;
use Magento\Ui\Component\Listing\Columns\Column;

/**
Expand Down
2 changes: 1 addition & 1 deletion app/code/Magento/InventoryAdminUi/etc/adminhtml/system.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
</field>
<field id="inventory_source_default_carrier_config" type="multiselect" translate="label" sortOrder="100" showInDefault="1" showInWebsite="0" showInStore="0">
<label>Specify Carriers</label>
<source_model>Magento\Inventory\Model\OptionSource\CarrierSource</source_model>
<source_model>Magento\InventoryAdminUi\Model\OptionSource\CarrierSource</source_model>
<can_be_empty>1</can_be_empty>
<comment>Use Ctrl+Click for check several values or uncheck value</comment>
<depends>
Expand Down
6 changes: 5 additions & 1 deletion app/code/Magento/InventoryAdminUi/etc/module.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,9 @@
*/
-->
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
<module name="Magento_InventoryAdminUi" setup_version="1.0.0"/>
<module name="Magento_InventoryAdminUi" setup_version="1.0.0">
<sequence>
<module name="Magento_InventoryApi"/>
</sequence>
</module>
</config>

0 comments on commit 4a2051d

Please sign in to comment.