Skip to content

Commit

Permalink
chore: fix quality checks
Browse files Browse the repository at this point in the history
  • Loading branch information
BryanttV committed Mar 6, 2024
1 parent 3cbf3e5 commit a708482
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion openassessment/xblock/static/js/src/lms/oa_response.js
Original file line number Diff line number Diff line change
Expand Up @@ -558,7 +558,10 @@ export class ResponseView {
handleResubmissionClicked() {
const view = this;
const title = gettext('Confirm Resubmission');
const msg = gettext(`You're about to reset your response for this assignment. Are you sure you want to do this?`);
const msg = gettext(`
You're about to reset your response for this
assignment. Are you sure you want to do this?
`);
this.confirmationDialog.confirm(
title,
msg,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ export class EditSettingsView {
new SelectControl(
$('#openassessment_allow_learner_resubmissions_selector', this.element),
(selectedValue) => {
const isHidden = selectedValue != true;
const isHidden = selectedValue === '0';
const el = $('#openassessment_resubmissions_grace_period_wrapper', this.element);
el.toggleClass('is--hidden', isHidden);
},
Expand Down

0 comments on commit a708482

Please sign in to comment.