This repository was archived by the owner on Oct 25, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
ticket-conductor-frontend/src/components Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 16
16
<script >
17
17
import axios from ' axios'
18
18
import config from ' ../../../config/config.js'
19
+ import auth from ' ../../auth/index.js'
19
20
20
21
export default {
21
22
data () {
@@ -25,17 +26,16 @@ export default {
25
26
},
26
27
methods: {
27
28
newComment () {
28
- var comment = this .elConsumer
29
- axios .post (config .api_url + ' /ticket/' + this .$route .params .id + ' create-comment' ,
29
+ var comment = this .comment
30
+ axios .post (config .api_url + ' /ticket/' + this .$route .params .id + ' / create-comment' ,
30
31
{
31
- title : comment,
32
+ text : comment,
32
33
},
33
34
{
34
35
headers: auth .getAuthHeader ()
35
36
})
36
37
.then (function (response ) {
37
38
self .comment = null
38
- self .$parent .getTickets () // A vuejs 1 (I think)hack to call the getTicket method, on parent component to instantly refresh the table
39
39
self .$store .commit (' setFlashMessage' , {
40
40
text: " Comment was added" ,
41
41
type: " success" ,
Original file line number Diff line number Diff line change 26
26
import config from ' ../../../config/config.js'
27
27
import auth from ' ../../auth/index.js'
28
28
import ticketSidebar from ' ./ticketSidebar.vue'
29
- import createComment from ' ./createComment.vue'
29
+ import createComment from ' ../comment /createComment.vue'
30
30
31
31
export default {
32
32
data () {
You can’t perform that action at this time.
0 commit comments