Skip to content
Snippets Groups Projects
Commit e6481dc4 authored by Rafael László's avatar Rafael László :speech_balloon:
Browse files

fixed event notes

parent 6e73501e
No related branches found
No related tags found
No related merge requests found
...@@ -29,7 +29,7 @@ export const postEventNote = ({ eventid, userid, note }) => ( ...@@ -29,7 +29,7 @@ export const postEventNote = ({ eventid, userid, note }) => (
try { try {
const response = await axios.post('/api/v1/notes/', { const response = await axios.post('/api/v1/notes/', {
event: eventid ? eventid : '', event: eventid ? eventid : '',
profile: userid ? eventid : '', profile: userid ? userid : '',
note, note,
}); });
if (response.data.id) { if (response.data.id) {
......
...@@ -81,8 +81,8 @@ class TraineeTableRow extends Component { ...@@ -81,8 +81,8 @@ class TraineeTableRow extends Component {
<Comment> <Comment>
<Comment.Content> <Comment.Content>
<Comment.Author><b>{notes[0].created_by_name}:</b></Comment.Author> <Comment.Author><b>{notes[0].created_by_name}:</b></Comment.Author>
<Comment.Text> <Comment.Text style={{wordWrap: 'break-word'}}>
{notes[0].note.length > 30 ? notes[0].note.slice(0, 50).concat('...') {notes[0].note.length > 25 ? notes[0].note.slice(0, 25).concat('...')
: :
notes[0].note } notes[0].note }
</Comment.Text> </Comment.Text>
...@@ -102,7 +102,7 @@ class TraineeTableRow extends Component { ...@@ -102,7 +102,7 @@ class TraineeTableRow extends Component {
content={notes.map((note) => { content={notes.map((note) => {
return ( return (
<Comment.Content> <Comment.Content>
<Comment.Author>{note.created_by_name}</Comment.Author> <Comment.Author><b>{note.created_by_name}:</b></Comment.Author>
<Comment.Text> <Comment.Text>
{note.note} {note.note}
</Comment.Text> </Comment.Text>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment