|
|
@@ -66,13 +66,6 @@ import {
|
|
|
import { ProductVariantQuickJumpComponent } from './components/product-variant-quick-jump/product-variant-quick-jump.component';
|
|
|
import { ProductVariantsEditorComponent } from './components/product-variants-editor/product-variants-editor.component';
|
|
|
import { ProductVariantsTableComponent } from './components/product-variants-table/product-variants-table.component';
|
|
|
-import { StockLocationDetailComponent } from './components/stock-location-detail/stock-location-detail.component';
|
|
|
-import {
|
|
|
- assignStockLocationsToChannelBulkAction,
|
|
|
- deleteStockLocationsBulkAction,
|
|
|
- removeStockLocationsFromChannelBulkAction,
|
|
|
-} from './components/stock-location-list/stock-location-list-bulk-actions';
|
|
|
-import { StockLocationListComponent } from './components/stock-location-list/stock-location-list.component';
|
|
|
import { UpdateProductOptionDialogComponent } from './components/update-product-option-dialog/update-product-option-dialog.component';
|
|
|
import { VariantPriceDetailComponent } from './components/variant-price-detail/variant-price-detail.component';
|
|
|
|
|
|
@@ -109,13 +102,12 @@ const CATALOG_COMPONENTS = [
|
|
|
CreateProductVariantDialogComponent,
|
|
|
CreateProductOptionGroupDialogComponent,
|
|
|
ProductVariantQuickJumpComponent,
|
|
|
- StockLocationListComponent,
|
|
|
];
|
|
|
|
|
|
@NgModule({
|
|
|
imports: [SharedModule, RouterModule.forChild([])],
|
|
|
exports: [...CATALOG_COMPONENTS],
|
|
|
- declarations: [...CATALOG_COMPONENTS, StockLocationDetailComponent],
|
|
|
+ declarations: [...CATALOG_COMPONENTS],
|
|
|
providers: [
|
|
|
{
|
|
|
provide: ROUTES,
|
|
|
@@ -147,10 +139,6 @@ export class CatalogModule {
|
|
|
bulkActionRegistryService.registerBulkAction(removeCollectionsFromChannelBulkAction);
|
|
|
bulkActionRegistryService.registerBulkAction(deleteCollectionsBulkAction);
|
|
|
|
|
|
- bulkActionRegistryService.registerBulkAction(assignStockLocationsToChannelBulkAction);
|
|
|
- bulkActionRegistryService.registerBulkAction(removeStockLocationsFromChannelBulkAction);
|
|
|
- bulkActionRegistryService.registerBulkAction(deleteStockLocationsBulkAction);
|
|
|
-
|
|
|
pageService.registerPageTab({
|
|
|
priority: 0,
|
|
|
location: 'product-list',
|
|
|
@@ -182,30 +170,30 @@ export class CatalogModule {
|
|
|
route: 'variants',
|
|
|
component: ProductVariantListComponent,
|
|
|
});
|
|
|
- pageService.registerPageTab({
|
|
|
- priority: 0,
|
|
|
- location: 'stock-location-detail',
|
|
|
- tab: _('catalog.stock-location'),
|
|
|
- route: '',
|
|
|
- component: detailComponentWithResolver({
|
|
|
- component: StockLocationDetailComponent,
|
|
|
- query: GetStockLocationDetailDocument,
|
|
|
- entityKey: 'stockLocation',
|
|
|
- getBreadcrumbs: entity => [
|
|
|
- {
|
|
|
- label: entity ? entity.name : _('catalog.create-new-stock-location'),
|
|
|
- link: [entity?.id],
|
|
|
- },
|
|
|
- ],
|
|
|
- }),
|
|
|
- });
|
|
|
- pageService.registerPageTab({
|
|
|
- priority: 0,
|
|
|
- location: 'product-list',
|
|
|
- tab: _('catalog.stock-locations'),
|
|
|
- route: 'stock-locations',
|
|
|
- component: StockLocationListComponent,
|
|
|
- });
|
|
|
+ // pageService.registerPageTab({
|
|
|
+ // priority: 0,
|
|
|
+ // location: 'stock-location-detail',
|
|
|
+ // tab: _('catalog.stock-location'),
|
|
|
+ // route: '',
|
|
|
+ // component: detailComponentWithResolver({
|
|
|
+ // component: StockLocationDetailComponent,
|
|
|
+ // query: GetStockLocationDetailDocument,
|
|
|
+ // entityKey: 'stockLocation',
|
|
|
+ // getBreadcrumbs: entity => [
|
|
|
+ // {
|
|
|
+ // label: entity ? entity.name : _('catalog.create-new-stock-location'),
|
|
|
+ // link: [entity?.id],
|
|
|
+ // },
|
|
|
+ // ],
|
|
|
+ // }),
|
|
|
+ // });
|
|
|
+ // pageService.registerPageTab({
|
|
|
+ // priority: 0,
|
|
|
+ // location: 'product-list',
|
|
|
+ // tab: _('catalog.stock-locations'),
|
|
|
+ // route: 'stock-locations',
|
|
|
+ // component: StockLocationListComponent,
|
|
|
+ // });
|
|
|
pageService.registerPageTab({
|
|
|
priority: 0,
|
|
|
location: 'product-variant-detail',
|
|
|
@@ -218,7 +206,7 @@ export class CatalogModule {
|
|
|
getBreadcrumbs: entity => [
|
|
|
{
|
|
|
label: `${entity?.product.name}`,
|
|
|
- link: ['/catalog', 'inventory', entity?.product.id],
|
|
|
+ link: ['/catalog', 'products', entity?.product.id],
|
|
|
},
|
|
|
{
|
|
|
label: `${entity?.name} (${entity?.sku})`,
|