diff --git a/packages/plugins/api-keys/src/client/Configuration/schema.tsx b/packages/plugins/api-keys/src/client/Configuration/schema.tsx index b348cd561b..d28365d60e 100644 --- a/packages/plugins/api-keys/src/client/Configuration/schema.tsx +++ b/packages/plugins/api-keys/src/client/Configuration/schema.tsx @@ -118,6 +118,9 @@ export const configurationSchema: ISchema = { type: 'string', title: generateNTemplate('Role'), required: true, + 'x-decorator-props': { + tooltip: generateNTemplate('Allow only your own roles to be selected'), + }, 'x-collection-field': 'apiKeys.role', 'x-component': 'CollectionField', 'x-decorator': 'FormItem', diff --git a/packages/plugins/api-keys/src/locale/zh-CN.ts b/packages/plugins/api-keys/src/locale/zh-CN.ts index bab920eb3d..e91c211658 100644 --- a/packages/plugins/api-keys/src/locale/zh-CN.ts +++ b/packages/plugins/api-keys/src/locale/zh-CN.ts @@ -17,6 +17,7 @@ const locale = { '30 Days': '30 天', '90 Days': '90 天', 'Role not found': '角色不存在', + 'Allow only your own roles to be selected': '只允许选择你自己拥有的角色', }; export default locale;