diff --git a/app/code/Magento/Inventory/Controller/Adminhtml/Sources/Edit.php b/app/code/Magento/Inventory/Controller/Adminhtml/Sources/Edit.php new file mode 100644 index 000000000000..f9db914ed656 --- /dev/null +++ b/app/code/Magento/Inventory/Controller/Adminhtml/Sources/Edit.php @@ -0,0 +1,39 @@ +resultPageFactory = $resultPageFactory; + parent::__construct($context); + } + + /** + * @return \Magento\Framework\View\Result\Page + */ + public function execute() + { + return $this->resultPageFactory->create(); + } +} diff --git a/app/code/Magento/Inventory/Controller/Adminhtml/Sources/Index.php b/app/code/Magento/Inventory/Controller/Adminhtml/Sources/Index.php index 3023551901d9..5715766a854e 100644 --- a/app/code/Magento/Inventory/Controller/Adminhtml/Sources/Index.php +++ b/app/code/Magento/Inventory/Controller/Adminhtml/Sources/Index.php @@ -1,11 +1,25 @@ resultPageFactory = $resultPageFactory; parent::__construct($context); } - + + /** + * @return \Magento\Framework\View\Result\Page + */ public function execute() { return $this->resultPageFactory->create(); diff --git a/app/code/Magento/Inventory/Ui/Component/Listing/Column/Magentoinventorysource/PageActions.php b/app/code/Magento/Inventory/Ui/Component/Listing/Columns/SourceActions.php similarity index 76% rename from app/code/Magento/Inventory/Ui/Component/Listing/Column/Magentoinventorysource/PageActions.php rename to app/code/Magento/Inventory/Ui/Component/Listing/Columns/SourceActions.php index 0209b27f7e44..2dcfe789a8aa 100644 --- a/app/code/Magento/Inventory/Ui/Component/Listing/Column/Magentoinventorysource/PageActions.php +++ b/app/code/Magento/Inventory/Ui/Component/Listing/Columns/SourceActions.php @@ -4,18 +4,18 @@ * See COPYING.txt for license details. */ -namespace Magento\Inventory\Ui\Component\Listing\Column\Magentoinventorysource; +namespace Magento\Inventory\Ui\Component\Listing\Columns; use Magento\InventoryApi\Api\Data\SourceInterface; /** - * Class PageActions + * Class SourceActions */ -class PageActions extends \Magento\Ui\Component\Listing\Columns\Column +class SourceActions extends \Magento\Ui\Component\Listing\Columns\Column { /** - * Add new edit action for the ui grid. + * Add new edit action for the ui grid. */ public function prepareDataSource(array $dataSource) { @@ -29,7 +29,7 @@ public function prepareDataSource(array $dataSource) } $href = $this->getContext()->getUrl( - "magento_inventory_source/page/edit", + "inventory/sources/edit", [SourceInterface::SOURCE_ID => $id] ); diff --git a/app/code/Magento/Inventory/view/adminhtml/layout/inventory_sources_edit.xml b/app/code/Magento/Inventory/view/adminhtml/layout/inventory_sources_edit.xml new file mode 100644 index 000000000000..4f7d677aaee9 --- /dev/null +++ b/app/code/Magento/Inventory/view/adminhtml/layout/inventory_sources_edit.xml @@ -0,0 +1,14 @@ + + + + + + + + diff --git a/app/code/Magento/Inventory/view/adminhtml/ui_component/inventory_source_listing.xml b/app/code/Magento/Inventory/view/adminhtml/ui_component/inventory_source_listing.xml index d27b9124da59..aa08caa4b6fb 100644 --- a/app/code/Magento/Inventory/view/adminhtml/ui_component/inventory_source_listing.xml +++ b/app/code/Magento/Inventory/view/adminhtml/ui_component/inventory_source_listing.xml @@ -43,6 +43,24 @@ + + true + + + + + + + + Delete selected items? + Delete items + + + delete + + + + @@ -65,7 +83,7 @@ - + false