mirror of https://github.com/Lissy93/dashy.git
⚡ Improved validation warnings in JSON editor
This commit is contained in:
parent
ad1fae5b66
commit
e472d91102
|
@ -193,12 +193,13 @@ export default {
|
|||
validationErrors(errors) {
|
||||
const errorMessages = [];
|
||||
errors.forEach((error) => {
|
||||
console.log(error);
|
||||
switch (error.type) {
|
||||
case 'validation':
|
||||
errorMessages.push({
|
||||
type: 'validation',
|
||||
msg: `${this.$t('config-editor.warning-msg-validation')}: `
|
||||
+ `${error.error.keyword} ${error.error.message}`,
|
||||
+ `${(error.error || error).dataPath} ${(error.error || error).message}`,
|
||||
});
|
||||
break;
|
||||
case 'error':
|
||||
|
|
Loading…
Reference in New Issue