@fuentis/phoenix-ui 0.0.9-alpha.540 → 0.0.9-alpha.541
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -9128,8 +9128,9 @@ class MetaSubmitValidatorService {
|
|
|
9128
9128
|
continue;
|
|
9129
9129
|
if (mapped?.isValid === false) {
|
|
9130
9130
|
const errorKey = v.errorKey ?? 'unique';
|
|
9131
|
-
|
|
9132
|
-
|
|
9131
|
+
const msg = mapped?.message ??
|
|
9132
|
+
'VALIDATION_MESSAGE.VALUE_IS_ALREADY_IN_USE';
|
|
9133
|
+
ctrl.setErrors({ ...(ctrl.errors ?? {}), [errorKey]: msg });
|
|
9133
9134
|
ctrl.markAsTouched();
|
|
9134
9135
|
ctrl.markAsDirty();
|
|
9135
9136
|
return false;
|