Skip to content

Commit

Permalink
Merge pull request #215 from magento-engcom/modularity-inventory-catalog
Browse files Browse the repository at this point in the history
Broken modularity in InventoryCatalog
  • Loading branch information
Valeriy Nayda authored Nov 22, 2017
2 parents 36f759e + ef6f15f commit 9489af1
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 7 deletions.
6 changes: 0 additions & 6 deletions app/code/Magento/InventoryCatalog/etc/adminhtml/di.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,6 @@
*/
-->
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
<!-- Stock delete button -->
<type name="Magento\InventoryCatalog\Ui\Component\Control\Stock\DeleteButton">
<arguments>
<argument name="deleteButton" xsi:type="object">Magento\Inventory\Ui\Component\Control\Stock\DeleteButton</argument>
</arguments>
</type>
<!-- Product form configurations -->
<virtualType name="Magento\Catalog\Ui\DataProvider\Product\Form\Modifier\Pool">
<arguments>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/
declare(strict_types=1);

namespace Magento\InventoryCatalog\Ui\Component\Control\Stock;
namespace Magento\InventorySales\Ui\Component\Control\Stock;

use Magento\Backend\Ui\Component\Control\DeleteButton as StockDeleteButton;
use Magento\Framework\View\Element\UiComponent\Control\ButtonProviderInterface;
Expand Down
15 changes: 15 additions & 0 deletions app/code/Magento/InventorySales/etc/adminhtml/di.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?xml version="1.0"?>
<!--
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
-->
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:ObjectManager/etc/config.xsd">
<!-- Stock delete button -->
<type name="Magento\InventorySales\Ui\Component\Control\Stock\DeleteButton">
<arguments>
<argument name="deleteButton" xsi:type="object">Magento\Inventory\Ui\Component\Control\Stock\DeleteButton</argument>
</arguments>
</type>
</config>
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@
*/
-->
<form xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Ui:etc/ui_configuration.xsd">
<settings>
<buttons>
<button name="delete" class="Magento\InventorySales\Ui\Component\Control\Stock\DeleteButton"/>
</buttons>
</settings>
<fieldset name="sales_channels" sortOrder="30">
<settings>
<label translate="true">Sales Channels</label>
Expand Down

0 comments on commit 9489af1

Please sign in to comment.