@@ -373,7 +373,7 @@ export default {
373
373
methods: {
374
374
validationError(modelField) {
375
375
if (this.errors == null) return false;
376
- return this.errors.find(function (el) {
376
+ return this.errors.details. find(function (el) {
377
377
return el.path === modelField
378
378
})
379
379
}
@@ -761,7 +761,7 @@ export default {
761
761
methods: {
762
762
validationError(modelField) {
763
763
if (this.errors == null) return false;
764
- return this.errors.find(function (el) {
764
+ return this.errors.details. find(function (el) {
765
765
return el.path === modelField
766
766
})
767
767
}
@@ -1152,7 +1152,7 @@ module.exports.BookForm = `
1152
1152
:searchUrl = "this.$baseUrl()"
1153
1153
v-model:foreignKey="book.publisherId"
1154
1154
label="name"
1155
- valueKey="id"
1155
+ valueKey="id"
1156
1156
targetModel="Publisher"
1157
1157
v-bind:initialInput="publisherInitialLabel">
1158
1158
</foreign-key-form-element>
@@ -1170,8 +1170,8 @@ module.exports.BookForm = `
1170
1170
:mode="mode"
1171
1171
:addItems.sync="book.addPeople"
1172
1172
label="firstName"
1173
- subLabel ="email"
1174
- valueKey="id"
1173
+ subLabel ="email"
1174
+ valueKey="id"
1175
1175
model="Book"
1176
1176
targetModel = "Person"
1177
1177
removeName="removePeople"
@@ -1203,18 +1203,18 @@ import axios from 'axios'
1203
1203
export default {
1204
1204
props: [ 'book', 'errors', 'mode' ],
1205
1205
data(){
1206
- return{
1207
- target_models: [
1208
- {
1209
- model:'Person',
1210
- label: 'firstName',
1211
- sublabel: 'email'
1212
- } ],
1213
- model: 'book'
1206
+ return{
1207
+ target_models: [
1208
+ {
1209
+ model:'Person',
1210
+ label: 'firstName',
1211
+ sublabel: 'email'
1212
+ } ],
1213
+ model: 'book'
1214
1214
}
1215
1215
},
1216
1216
computed: {
1217
- publisherInitialLabel: function () {
1217
+ publisherInitialLabel: function () {
1218
1218
var x = this.book.publisher
1219
1219
if (x !== null && typeof x === 'object' &&
1220
1220
x['name'] !== null &&
@@ -1224,13 +1224,14 @@ export default {
1224
1224
return ''
1225
1225
}
1226
1226
}
1227
- },
1227
+
1228
+ },
1228
1229
methods: {
1229
1230
validationError(modelField) {
1230
1231
if (this.errors == null) return false;
1231
- return this.errors.find(function (el) {
1232
- return el.path === modelField
1233
- })
1232
+ return this.errors.details .find(function (el) {
1233
+ return el.path === modelField
1234
+ })
1234
1235
}
1235
1236
},
1236
1237
mounted: function() {
@@ -1243,6 +1244,7 @@ export default {
1243
1244
})
1244
1245
},
1245
1246
created(){
1247
+
1246
1248
}
1247
1249
}
1248
1250
</script>
@@ -1641,7 +1643,7 @@ export default {
1641
1643
methods: {
1642
1644
validationError(modelField) {
1643
1645
if (this.errors == null) return false;
1644
- return this.errors.find(function (el) {
1646
+ return this.errors.details. find(function (el) {
1645
1647
return el.path === modelField
1646
1648
})
1647
1649
}
@@ -1770,7 +1772,7 @@ export default {
1770
1772
methods: {
1771
1773
validationError(modelField) {
1772
1774
if (this.errors == null) return false;
1773
- return this.errors.find(function (el) {
1775
+ return this.errors.details. find(function (el) {
1774
1776
return el.path === modelField
1775
1777
})
1776
1778
}
@@ -2212,7 +2214,7 @@ export default {
2212
2214
methods: {
2213
2215
validationError(modelField) {
2214
2216
if (this.errors == null) return false;
2215
- return this.errors.find(function (el) {
2217
+ return this.errors.details. find(function (el) {
2216
2218
return el.path === modelField
2217
2219
})
2218
2220
}
0 commit comments