File tree Expand file tree Collapse file tree 4 files changed +9
-9
lines changed
frontend/src/components/dialog Expand file tree Collapse file tree 4 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ export default {
37
37
data () {
38
38
return {
39
39
entityProperties: [
40
- ' campId ' ,
40
+ ' camp ' ,
41
41
' short' ,
42
42
' name' ,
43
43
' color' ,
@@ -53,7 +53,7 @@ export default {
53
53
showDialog : function (showDialog ) {
54
54
if (showDialog) {
55
55
this .setEntityData ({
56
- campId : this .camp .id ,
56
+ camp : this .camp ._meta . self ,
57
57
short: ' ' ,
58
58
name: ' ' ,
59
59
color: ' #000000' ,
@@ -68,7 +68,7 @@ export default {
68
68
methods: {
69
69
createCategory () {
70
70
return this .create ().then (() => {
71
- this .api .reload (this .camp )
71
+ this .api .reload (this .camp . categories () )
72
72
})
73
73
}
74
74
}
Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ export default {
55
55
},
56
56
contentTypes () {
57
57
return this .api .get ().contentTypes ().items .map (ct => ({
58
- value: ct,
58
+ value: ct . _meta . self ,
59
59
text: this .$tc (' contentNode.' + camelCase (ct .name ) + ' .name' )
60
60
}))
61
61
}
Original file line number Diff line number Diff line change @@ -31,17 +31,17 @@ export default {
31
31
data () {
32
32
return {
33
33
entityProperties: [
34
- ' campId ' ,
34
+ ' camp ' ,
35
35
' name'
36
36
],
37
- entityUri: ' /material-lists '
37
+ entityUri: ' /material_lists '
38
38
}
39
39
},
40
40
watch: {
41
41
showDialog : function (showDialog ) {
42
42
if (showDialog) {
43
43
this .setEntityData ({
44
- campId : this .camp .id ,
44
+ camp : this .camp ._meta . self ,
45
45
name: ' '
46
46
})
47
47
} else {
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ export default {
31
31
data () {
32
32
return {
33
33
entityProperties: [
34
- ' campId ' ,
34
+ ' camp ' ,
35
35
' description' ,
36
36
' start' ,
37
37
' end'
@@ -43,7 +43,7 @@ export default {
43
43
showDialog : function (showDialog ) {
44
44
if (showDialog) {
45
45
this .setEntityData ({
46
- campId : this .camp .id ,
46
+ camp : this .camp ._meta . self ,
47
47
description: ' ' ,
48
48
start: ' ' ,
49
49
end: ' '
You can’t perform that action at this time.
0 commit comments