From a9e67fe5226e2393b4de693f26fc808c825d344e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrg=20Hunziker?= Date: Fri, 24 Nov 2023 08:27:20 +0100 Subject: [PATCH] fix(admin-ui): Fix admin ui code templates (#2545) --- .../ui-extension-point.component.ts | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/packages/admin-ui/src/lib/core/src/shared/components/ui-extension-point/ui-extension-point.component.ts b/packages/admin-ui/src/lib/core/src/shared/components/ui-extension-point/ui-extension-point.component.ts index a8a954fe63..5b789f81d1 100644 --- a/packages/admin-ui/src/lib/core/src/shared/components/ui-extension-point/ui-extension-point.component.ts +++ b/packages/admin-ui/src/lib/core/src/shared/components/ui-extension-point/ui-extension-point.component.ts @@ -107,8 +107,8 @@ export default [ id: 'my-button', label: 'My Action', locationId: '${locationId}', - }); -]`, + }), +];`, navMenu: locationId => ` import { addNavMenuSection } from '@vendure/admin-ui/core'; @@ -117,10 +117,10 @@ export default [ id: 'my-menu-item', label: 'My Menu Item', routerLink: ['/extensions/my-plugin'], - } - '${locationId}' - ); -]`, + }, + '${locationId}', + ), +];`, detailComponent: locationId => ` import { registerCustomDetailComponent } from '@vendure/admin-ui/core'; @@ -128,8 +128,8 @@ export default [ registerCustomDetailComponent({ locationId: '${locationId}', component: MyCustomComponent, - }); -]`, + }), +];`, dataTable: (locationId, metadata) => ` import { registerDataTableComponent } from '@vendure/admin-ui/core'; @@ -138,6 +138,6 @@ export default [ tableId: '${locationId}', columnId: '${metadata}', component: MyCustomComponent, - }); -]`, + }), +];`, };