Skip to content

Commit

Permalink
SAK-48884 update submission grade with rubric total points (sakaiproj…
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianfish authored May 15, 2023
1 parent 592f88d commit d1c6ac3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -378,6 +378,7 @@ export const graderRenderingMixin = Base => class extends Base {
@rubric-rating-changed=${this._onRubricRatingChanged}
@rubric-ratings-changed=${this._onRubricRatingsChanged}
@rubric-rating-tuned=${this._onRubricRatingTuned}
@total-points-updated=${this._onRubricTotalPointsUpdated}
@update-comment=${this._onUpdateCriterionComment}
></sakai-rubric-grading>
<button class="btn btn-primary"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -368,6 +368,12 @@ export class SakaiGrader extends graderRenderingMixin(gradableDataMixin(SakaiEle
this._addRubricParam(e, "criterion-override");
}

_onRubricTotalPointsUpdated(e) {

this.submission.grade = e.detail.value;
this.requestUpdate();
}

_onEvaluationRemoved() {
this.querySelector("sakai-rubric-grading-button").setHasEvaluation();
}
Expand Down

0 comments on commit d1c6ac3

Please sign in to comment.