refs #5878 perf: front validations
gitea/salix/pipeline/head There was a failure building this commit
Details
gitea/salix/pipeline/head There was a failure building this commit
Details
This commit is contained in:
parent
0a76b6843f
commit
e5e97a047f
|
@ -1,4 +1,6 @@
|
||||||
Are you sure exit without saving?: ¿Seguro que quieres salir sin guardar?
|
Are you sure exit without saving?: ¿Seguro que quieres salir sin guardar?
|
||||||
Unsaved changes will be lost: Los cambios que no hayas guardado se perderán
|
Unsaved changes will be lost: Los cambios que no hayas guardado se perderán
|
||||||
No changes to save: No hay cambios que guardar
|
No changes to save: No hay cambios que guardar
|
||||||
|
Field are invalid: El campo {{tag}} no es válido
|
||||||
Some fields are invalid: Algunos campos no son válidos
|
Some fields are invalid: Algunos campos no son válidos
|
||||||
|
|
||||||
|
|
|
@ -317,8 +317,10 @@ export default class Watcher extends Component {
|
||||||
* Checks if the form is valid.
|
* Checks if the form is valid.
|
||||||
*/
|
*/
|
||||||
isInvalid() {
|
isInvalid() {
|
||||||
if (this.form && this.form.$invalid)
|
if (this.form && this.form.$invalid) {
|
||||||
throw new UserError('Some fields are invalid');
|
const tag = Object.values(this.form.$error)[0][0].$$attr.label;
|
||||||
|
throw new UserError(this.$t('Field are invalid', {tag: this.$t(tag)}));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -335,6 +335,7 @@
|
||||||
"Model is not valid": "El campo \" {{key}}\" no es válido",
|
"Model is not valid": "El campo \" {{key}}\" no es válido",
|
||||||
"Property is not defined in this model": "La propiedad que ha modificado no existe",
|
"Property is not defined in this model": "La propiedad que ha modificado no existe",
|
||||||
"postCode": "Código postal",
|
"postCode": "Código postal",
|
||||||
|
"postcode": "Código postal",
|
||||||
"fi": "NIF/CIF",
|
"fi": "NIF/CIF",
|
||||||
"nif": "NIF/CIF",
|
"nif": "NIF/CIF",
|
||||||
"Account": "Cuenta",
|
"Account": "Cuenta",
|
||||||
|
@ -350,7 +351,5 @@
|
||||||
"sageWithholdingFk" : "Sage con tenencia",
|
"sageWithholdingFk" : "Sage con tenencia",
|
||||||
"Cannot past travels with entries": "No se pueden pasar envíos con entradas",
|
"Cannot past travels with entries": "No se pueden pasar envíos con entradas",
|
||||||
"It was not able to remove the next expeditions:": "No se pudo eliminar las siguientes expediciones: {{expeditions}}",
|
"It was not able to remove the next expeditions:": "No se pudo eliminar las siguientes expediciones: {{expeditions}}",
|
||||||
"Field are invalid": "El campo {{tag}} no es válido",
|
"Field are invalid": "El campo {{tag}} no es válido"
|
||||||
"postcode": "Código postal"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue