From 6a9addf518b7f34883b32de3d754044fc430e427 Mon Sep 17 00:00:00 2001 From: Zeke Zhang <958414905@qq.com> Date: Thu, 7 Mar 2024 19:27:53 +0800 Subject: [PATCH] refactor: calendar:configureActions --- .../src/client/__e2e__/schemaInitailizer.test.ts | 2 +- .../@nocobase/plugin-action-print/src/client/__e2e__/utils.ts | 2 +- .../initializers/CalendarActionInitializers.tsx | 2 +- .../plugin-calendar/src/client/schema-initializer/utils.ts | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/plugins/@nocobase/plugin-action-print/src/client/__e2e__/schemaInitailizer.test.ts b/packages/plugins/@nocobase/plugin-action-print/src/client/__e2e__/schemaInitailizer.test.ts index 908c76363a..21676b1e5c 100644 --- a/packages/plugins/@nocobase/plugin-action-print/src/client/__e2e__/schemaInitailizer.test.ts +++ b/packages/plugins/@nocobase/plugin-action-print/src/client/__e2e__/schemaInitailizer.test.ts @@ -17,7 +17,7 @@ test.describe('ReadPrettyFormActionInitializers & CalendarFormActionInitializers await mockRecord('general', { singleLineText: 'test' }); await nocoPage.goto(); await page.getByTitle('test').click(); - await page.getByLabel('schema-initializer-ActionBar-actionInitializers:calendarForm-general').hover(); + await page.getByLabel('schema-initializer-ActionBar-calendar:configureActionsForm-general').hover(); await page.getByRole('menuitem', { name: 'Print' }).click(); await page.getByLabel('action-Action-Print-print-general-form').click(); }); diff --git a/packages/plugins/@nocobase/plugin-action-print/src/client/__e2e__/utils.ts b/packages/plugins/@nocobase/plugin-action-print/src/client/__e2e__/utils.ts index b0e30e73b5..a1cb986723 100644 --- a/packages/plugins/@nocobase/plugin-action-print/src/client/__e2e__/utils.ts +++ b/packages/plugins/@nocobase/plugin-action-print/src/client/__e2e__/utils.ts @@ -441,7 +441,7 @@ export const oneCalenderWithViewAction: PageConfig = { type: 'void', version: '2.0', 'x-component': 'CalendarV2.ActionBar', - 'x-initializer': 'actionInitializers:calendar', + 'x-initializer': 'calendar:configureActions', 'x-component-props': { style: { marginBottom: 24, diff --git a/packages/plugins/@nocobase/plugin-calendar/src/client/schema-initializer/initializers/CalendarActionInitializers.tsx b/packages/plugins/@nocobase/plugin-calendar/src/client/schema-initializer/initializers/CalendarActionInitializers.tsx index a8800f84b6..23df1f694a 100644 --- a/packages/plugins/@nocobase/plugin-calendar/src/client/schema-initializer/initializers/CalendarActionInitializers.tsx +++ b/packages/plugins/@nocobase/plugin-calendar/src/client/schema-initializer/initializers/CalendarActionInitializers.tsx @@ -94,7 +94,7 @@ export const calendarActionInitializers = new CompatibleSchemaInitializer( { title: generateNTemplate('Configure actions'), icon: 'SettingOutlined', - name: 'actionInitializers:calendar', + name: 'calendar:configureActions', style: { marginLeft: 8 }, items: [ { diff --git a/packages/plugins/@nocobase/plugin-calendar/src/client/schema-initializer/utils.ts b/packages/plugins/@nocobase/plugin-calendar/src/client/schema-initializer/utils.ts index aeb5d5294d..822e8f3d30 100644 --- a/packages/plugins/@nocobase/plugin-calendar/src/client/schema-initializer/utils.ts +++ b/packages/plugins/@nocobase/plugin-calendar/src/client/schema-initializer/utils.ts @@ -41,7 +41,7 @@ export const createCalendarBlockSchema = (options) => { marginBottom: 24, }, }, - 'x-initializer': 'actionInitializers:calendar', + 'x-initializer': 'calendar:configureActions', properties: {}, }, event: {