mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-05 02:39:33 +02:00
unify inputs requiring buttons like password inputs
This commit is contained in:
parent
aa5ee5017a
commit
f8b530e0a5
26 changed files with 177 additions and 100 deletions
|
@ -39,6 +39,15 @@ export const USER_EMAIL_VALIDATOR: BuildFormValidator = {
|
|||
}
|
||||
}
|
||||
|
||||
export const USER_EXISTING_PASSWORD_VALIDATOR: BuildFormValidator = {
|
||||
VALIDATORS: [
|
||||
Validators.required
|
||||
],
|
||||
MESSAGES: {
|
||||
'required': $localize`Password is required.`
|
||||
}
|
||||
}
|
||||
|
||||
export const USER_PASSWORD_VALIDATOR: BuildFormValidator = {
|
||||
VALIDATORS: [
|
||||
Validators.required,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue