From 482bca9d8140f38358608b3acd6749346728005f Mon Sep 17 00:00:00 2001 From: Michael Bromley Date: Mon, 22 Apr 2024 11:42:05 +0200 Subject: [PATCH] fix(admin-ui): Fix custom tabs in customer list Fixes #2788 --- .../src/lib/customer/src/customer.routes.ts | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/packages/admin-ui/src/lib/customer/src/customer.routes.ts b/packages/admin-ui/src/lib/customer/src/customer.routes.ts index 4d42ebbeb6..476c879eae 100644 --- a/packages/admin-ui/src/lib/customer/src/customer.routes.ts +++ b/packages/admin-ui/src/lib/customer/src/customer.routes.ts @@ -1,23 +1,13 @@ import { Route } from '@angular/router'; import { marker as _ } from '@biesbjerg/ngx-translate-extract-marker'; -import { - CanDeactivateDetailGuard, - createResolveData, - CustomerFragment, - detailBreadcrumb, - PageComponent, - PageService, -} from '@vendure/admin-ui/core'; - -import { CustomerDetailComponent } from './components/customer-detail/customer-detail.component'; -import { CustomerGroupListComponent } from './components/customer-group-list/customer-group-list.component'; -import { CustomerListComponent } from './components/customer-list/customer-list.component'; +import { CustomerFragment, detailBreadcrumb, PageComponent, PageService } from '@vendure/admin-ui/core'; export const createRoutes = (pageService: PageService): Route[] => [ { path: 'customers', component: PageComponent, data: { + locationId: 'customer-list', breadcrumb: _('breadcrumb.customers'), }, children: pageService.getPageTabRoutes('customer-list'),