This repository was archived by the owner on Mar 4, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +12
-9
lines changed Expand file tree Collapse file tree 2 files changed +12
-9
lines changed Original file line number Diff line number Diff line change @@ -124,7 +124,9 @@ import angular from 'angular'
124
124
125
125
if ( answerObject . comments && answerObject . comments . length > 0 ) {
126
126
// pick first comment for peer review challenges
127
+ // does not handle displaying multiple comments yet
127
128
questions [ questionId ] . comment = answerObject . comments [ 0 ] . content
129
+ questions [ questionId ] . commentId = answerObject . comments [ 0 ] . id
128
130
}
129
131
130
132
if ( answerObject . answer !== '' ) {
@@ -148,15 +150,15 @@ import angular from 'angular'
148
150
answer : '' + q . answer
149
151
}
150
152
151
- if ( q . comment && q . comment . length > 0 ) {
152
- reviewItem . comments = [
153
- {
154
- content : '' + q . comment ,
155
- resourceId : review . resourceId ,
156
- commentTypeId : 1
157
- }
158
- ]
159
- }
153
+ reviewItem . comments = [
154
+ {
155
+ content : '' + q . comment ,
156
+ id : q . commentId ,
157
+ resourceId : review . resourceId ,
158
+ commentTypeId : 1 ,
159
+ reviewItemId : q . reviewItemId
160
+ }
161
+ ]
160
162
161
163
if ( updating ) {
162
164
reviewItem . id = q . reviewItemId
Original file line number Diff line number Diff line change @@ -130,6 +130,7 @@ modal {
130
130
display : flex ;
131
131
flex-direction : column ;
132
132
align-items : center ;
133
+ text-align : center ;
133
134
}
134
135
135
136
.upload-progress__image ,
You can’t perform that action at this time.
0 commit comments