This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user