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:
Jens Langhammer 2021-08-05 14:43:16 +02:00
parent 66bb68a747
commit 1cd59be8dc
2 changed files with 2 additions and 4 deletions

View File

@ -69,9 +69,8 @@ export class UserDetailsPage extends LitElement {
</ak-form-element-horizontal> </ak-form-element-horizontal>
<ak-form-element-horizontal <ak-form-element-horizontal
label=${t`Email`} label=${t`Email`}
?required=${true}
name="email"> 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> </ak-form-element-horizontal>
<div class="pf-c-form__group pf-m-action"> <div class="pf-c-form__group pf-m-action">

View File

@ -58,9 +58,8 @@ export class UserForm extends ModelForm<User, number> {
</ak-form-element-horizontal> </ak-form-element-horizontal>
<ak-form-element-horizontal <ak-form-element-horizontal
label=${t`Email`} label=${t`Email`}
?required=${true}
name="email"> 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>
<ak-form-element-horizontal <ak-form-element-horizontal
name="isActive"> name="isActive">