This commit is contained in:
2021-02-22 23:50:07 +00:00
parent 6582861474
commit 90d95c5e71
2 changed files with 6 additions and 19 deletions

View File

@@ -850,15 +850,9 @@ export default {
},
methods: {
poItemsRowClasses: function(item) {
let hasError = this.form().childRowHasError(this, "Items", item.index);
if (hasError) {
if (this.form().childRowHasError(this, "Items", item.index)) {
return "error";
}
//console.log("row_classes", { item: item, hasError: hasError });
//if item.index in errors collection then highlight the row
// if (item.calories < 200) {
// return "orange"; //can also return multiple classes e.g ["orange","disabled"]
// }
},
editItem: function(item) {
this.editPoItemIndex = item.index;