Commit 4f359ea5 by Victor Shnayder

pass through message when no more submissions.

parent ed6a8f68
...@@ -112,7 +112,7 @@ class StaffGrading ...@@ -112,7 +112,7 @@ class StaffGrading
if response.submission if response.submission
@data_loaded(response.submission, response.rubric) @data_loaded(response.submission, response.rubric)
else else
@no_more() @no_more(response.message)
else else
@error(response.error) @error(response.error)
...@@ -137,10 +137,10 @@ class StaffGrading ...@@ -137,10 +137,10 @@ class StaffGrading
@score = null @score = null
@state = state_grading @state = state_grading
no_more: () -> no_more: (message) ->
@submission = null @submission = null
@rubric = null @rubric = null
@message = 'Nothing to grade' @message = message
@state = state_no_data @state = state_no_data
render_view: () -> render_view: () ->
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment