mirror of
https://github.com/wisemapping/wisemapping-open-source.git
synced 2025-04-12 18:04:31 +08:00
color validation
This commit is contained in:
parent
b110d338af
commit
5733dbf45e
@ -36,6 +36,7 @@ public class LabelValidator implements Validator {
|
|||||||
|
|
||||||
private void validateLabel(@NotNull final Label label, @NotNull final Errors errors) {
|
private void validateLabel(@NotNull final Label label, @NotNull final Errors errors) {
|
||||||
ValidationUtils.rejectIfEmptyOrWhitespace(errors, "title", Messages.FIELD_REQUIRED);
|
ValidationUtils.rejectIfEmptyOrWhitespace(errors, "title", Messages.FIELD_REQUIRED);
|
||||||
|
ValidationUtils.rejectIfEmptyOrWhitespace(errors, "color", Messages.FIELD_REQUIRED);
|
||||||
final String title = label.getTitle();
|
final String title = label.getTitle();
|
||||||
ValidatorUtils.rejectIfExceeded(
|
ValidatorUtils.rejectIfExceeded(
|
||||||
errors,
|
errors,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user