Skip to content

Commit

Permalink
Clean up commented code
Browse files Browse the repository at this point in the history
  • Loading branch information
NeoHW committed Jul 30, 2024
1 parent 2e252ab commit e771541
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,3 @@
(click)="resetHandler()">
Reset choices
</button>

<!-- </div>
<tm-reset-choices-comfirmation
*ngIf="showResetWarning"
(confirmReset)="confirmReset($event)">
</tm-reset-choices-comfirmation>
</div> -->
Original file line number Diff line number Diff line change
Expand Up @@ -87,17 +87,9 @@ export class RubricQuestionEditAnswerFormComponent extends QuestionEditAnswerFor
'Are you sure you want to reset your choices? This action cannot be reverted'
).result.then(() => {
this.resetRubricAnswer();
// this.resetWarningTriggered.emit();
}, () => {});
}

// confirmReset(confirm: boolean): void {
// if (confirm) {
// this.resetRubricAnswer();
// }
// this.showResetWarning = false;
// }

resetRubricAnswer(): void {
const resettedAnswer: number[] =
Array(this.questionDetails.rubricSubQuestions.length).fill(RUBRIC_ANSWER_NOT_CHOSEN);
Expand Down

0 comments on commit e771541

Please sign in to comment.