Skip to content

Commit

Permalink
fixes bug with not disabling code editors when editing prompt
Browse files Browse the repository at this point in the history
  • Loading branch information
russell-rozenbaum committed Dec 20, 2024
1 parent 385da45 commit b767108
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 6 deletions.
4 changes: 0 additions & 4 deletions src/haz3lweb/exercises/Exercise.re
Original file line number Diff line number Diff line change
Expand Up @@ -436,8 +436,6 @@ let update_test_val_rep = ({eds}: state, new_test_num: int, new_dist: int) => {

let update_mut_test_rep =
({eds}: state, new_dist: int, new_hints: list(string)) => {
print_endline("New Point Dist for Mut Grading is: ");
print_endline(string_of_int(new_dist));
let updated_bugs =
List.mapi(
(i, bug) => {
Expand All @@ -449,8 +447,6 @@ let update_mut_test_rep =
},
eds.hidden_bugs,
);
print_endline("New Point Dist for Mut Grading is: ");
print_endline(string_of_int(new_dist));
{
eds: {
...eds,
Expand Down
2 changes: 0 additions & 2 deletions src/haz3lweb/exercises/Grading.re
Original file line number Diff line number Diff line change
Expand Up @@ -1114,8 +1114,6 @@ module ImplGradingReport = {
~syntax_report: SyntaxReport.t,
~max_points: int,
) => {
print_endline("Editing?? : ");
print_endline(string_of_bool(editing_impl_grd_rep));
CellCommon.panel(
~classes=["cell-item", "panel", "test-panel"],
[
Expand Down
1 change: 1 addition & 0 deletions src/haz3lweb/view/ExerciseMode.re
Original file line number Diff line number Diff line change
Expand Up @@ -760,6 +760,7 @@ module View = {
~attrs=[
Attr.class_("prompt-text"),
Attr.id("prompt-input-box"),
Attr.on_focus(_ => signal(MakeActive(TextBox))),
],
[text(eds.prompt)],
),
Expand Down

0 comments on commit b767108

Please sign in to comment.