feat: Regulären Ausdruck zur Überprüfung der Stadt im Frontend hinzugefügt.
This commit is contained in:
@@ -108,6 +108,8 @@
|
||||
|
||||
this.markFieldAsRequired(formFieldCity);
|
||||
|
||||
this.markFieldAsCity(formFieldCity);
|
||||
|
||||
/**
|
||||
* Date, post code and place label part
|
||||
*/
|
||||
@@ -307,6 +309,7 @@
|
||||
return inch * 72
|
||||
}
|
||||
|
||||
//required
|
||||
static #requiredFieldNames = new Array()
|
||||
|
||||
static markFieldAsRequired(formField) {
|
||||
@@ -316,4 +319,15 @@
|
||||
static isFieldRequired(formField) {
|
||||
return this.#requiredFieldNames.includes(formField.name)
|
||||
}
|
||||
|
||||
//city
|
||||
static #cityFieldNames = new Array()
|
||||
|
||||
static markFieldAsCity(formField) {
|
||||
this.#cityFieldNames.push(formField.name)
|
||||
}
|
||||
|
||||
static isCityField(formField){
|
||||
return this.#cityFieldNames.includes(formField.name)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user