web/admin: fix email being required
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org> # Conflicts: # web/src/pages/user-settings/UserDetailsPage.ts # web/src/pages/users/UserForm.ts
This commit is contained in:
parent
66bb68a747
commit
1cd59be8dc
|
@ -69,9 +69,8 @@ export class UserDetailsPage extends LitElement {
|
|||
</ak-form-element-horizontal>
|
||||
<ak-form-element-horizontal
|
||||
label=${t`Email`}
|
||||
?required=${true}
|
||||
name="email">
|
||||
<input type="email" value="${ifDefined(this.user?.email)}" class="pf-c-form-control" required>
|
||||
<input type="email" value="${ifDefined(this.user?.email)}" class="pf-c-form-control">
|
||||
</ak-form-element-horizontal>
|
||||
|
||||
<div class="pf-c-form__group pf-m-action">
|
||||
|
|
|
@ -58,9 +58,8 @@ export class UserForm extends ModelForm<User, number> {
|
|||
</ak-form-element-horizontal>
|
||||
<ak-form-element-horizontal
|
||||
label=${t`Email`}
|
||||
?required=${true}
|
||||
name="email">
|
||||
<input type="email" autocomplete="off" value="${ifDefined(this.instance?.email)}" class="pf-c-form-control" required>
|
||||
<input type="email" autocomplete="off" value="${ifDefined(this.instance?.email)}" class="pf-c-form-control">
|
||||
</ak-form-element-horizontal>
|
||||
<ak-form-element-horizontal
|
||||
name="isActive">
|
||||
|
|
Reference in a new issue