conversations beta: send explicit context_code to API
test case: * open conversations beta * send a message starting a conversation * verify that your POST included context_code * reply to a conversation * verify that your POST included context_code Change-Id: I9ed7e2979ba71eb04f5cab8b56c56e89ff1ba33c Reviewed-on: https://gerrit.instructure.com/23697 Tested-by: Jenkins <jenkins@instructure.com> Reviewed-by: Zach Pendleton <zachp@instructure.com> QA-Review: Cam Theriault <cam@instructure.com> Product-Review: Braden Anderson <banderson@instructure.com>
This commit is contained in:
parent
60650da3a0
commit
3bdf41ccd5
|
@ -42,6 +42,7 @@ define [
|
|||
|
||||
els:
|
||||
'.message_course': '$messageCourse'
|
||||
'input[name=context_code]': '$contextCode'
|
||||
'.message_subject': '$messageSubject'
|
||||
'.context_messages': '$contextMessages'
|
||||
'.media_comment': '$mediaComment'
|
||||
|
@ -148,6 +149,7 @@ define [
|
|||
|
||||
onCourse: (course) =>
|
||||
@recipientView.setCourse(course)
|
||||
@$contextCode.val(if course then 'course_'+course else '')
|
||||
|
||||
defaultCourse: null
|
||||
setDefaultCourse: (course) ->
|
||||
|
|
|
@ -41,6 +41,7 @@
|
|||
value="{{course}}">
|
||||
<option>{{#t "labels.select_course"}}Select a course{{/t}}</option>
|
||||
</select>
|
||||
<input type="hidden" name="context_code" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
|
Loading…
Reference in New Issue