mirror of
https://github.com/logto-io/logto.git
synced 2025-01-27 21:39:16 -05:00
refactor(console): make descriptions of the role and permission required (#2952)
This commit is contained in:
parent
9ed66a8593
commit
9bcb11a2d8
2 changed files with 7 additions and 4 deletions
|
@ -82,10 +82,10 @@ const CreatePermissionModal = ({ resourceId, onClose }: Props) => {
|
|||
errorMessage={errors.name?.message}
|
||||
/>
|
||||
</FormField>
|
||||
<FormField title="api_resource_details.permission.description">
|
||||
<FormField isRequired title="api_resource_details.permission.description">
|
||||
<TextInput
|
||||
placeholder={t('api_resource_details.permission.description_placeholder')}
|
||||
{...register('description')}
|
||||
{...register('description', { required: true })}
|
||||
/>
|
||||
</FormField>
|
||||
</form>
|
||||
|
|
|
@ -50,8 +50,11 @@ const RoleSettings = () => {
|
|||
<FormField isRequired title="role_details.field_name">
|
||||
<TextInput {...register('name', { required: true })} hasError={Boolean(errors.name)} />
|
||||
</FormField>
|
||||
<FormField title="role_details.field_description">
|
||||
<TextInput {...register('description')} hasError={Boolean(errors.description)} />
|
||||
<FormField isRequired title="role_details.field_description">
|
||||
<TextInput
|
||||
{...register('description', { required: true })}
|
||||
hasError={Boolean(errors.description)}
|
||||
/>
|
||||
</FormField>
|
||||
</FormCard>
|
||||
</DetailsForm>
|
||||
|
|
Loading…
Add table
Reference in a new issue