feat(api-keys): add tooltip for roles (#2567)

* feat(api-keys): add tooltip for roles

* feat: improve
This commit is contained in:
Dunqing 2023-08-30 10:32:39 +08:00 committed by GitHub
parent 9c22aebaff
commit 3bb38b16f3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 0 deletions

View File

@ -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',

View File

@ -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;