make name required (#2100)
This commit is contained in:
parent
41d58ab1b3
commit
816d2b5221
1 changed files with 6 additions and 1 deletions
|
@ -190,6 +190,7 @@ export default function PermissionDetails() {
|
||||||
<FormProvider {...form}>
|
<FormProvider {...form}>
|
||||||
<FormGroup
|
<FormGroup
|
||||||
label={t("common:name")}
|
label={t("common:name")}
|
||||||
|
isRequired
|
||||||
fieldId="name"
|
fieldId="name"
|
||||||
labelIcon={
|
labelIcon={
|
||||||
<HelpItem
|
<HelpItem
|
||||||
|
@ -198,7 +199,11 @@ export default function PermissionDetails() {
|
||||||
/>
|
/>
|
||||||
}
|
}
|
||||||
>
|
>
|
||||||
<TextInput id="name" name="name" ref={register} />
|
<TextInput
|
||||||
|
id="name"
|
||||||
|
name="name"
|
||||||
|
ref={register({ required: true })}
|
||||||
|
/>
|
||||||
</FormGroup>
|
</FormGroup>
|
||||||
<FormGroup
|
<FormGroup
|
||||||
label={t("common:description")}
|
label={t("common:description")}
|
||||||
|
|
Loading…
Reference in a new issue