material and activeModelIndex fix

This commit is contained in:
VLE2FE
2020-08-31 16:14:47 +02:00
parent 08d5ac8366
commit 250b04e096
19 changed files with 515 additions and 5 deletions

View File

@ -71,6 +71,14 @@ export class ValidationService {
return {ok: true, error: ''};
}
stringNin(data, list) {
const {ignore, error} = Joi.string().invalid(...list).validate(data);
if (error) {
return {ok: false, error: 'value not allowed'};
}
return {ok: true, error: ''};
}
stringLength(data, length) {
const {ignore, error} = Joi.string().max(length).allow('').validate(data);
if (error) {