Skip to content

Commit 68806f3

Browse files
committed
Add tooltip to attempt view button
1 parent ace7ef4 commit 68806f3

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/app/components/pages/quizzes/QuizTeacherFeedback.tsx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ import * as RS from "reactstrap";
66
import {ShowLoading} from "../../handlers/ShowLoading";
77
import {
88
loadQuizAssignmentFeedback,
9-
returnQuizToStudent, updateQuizAssignmentDueDate,
9+
returnQuizToStudent,
10+
updateQuizAssignmentDueDate,
1011
updateQuizAssignmentFeedbackMode
1112
} from "../../../state/actions/quizzes";
1213
import {selectors} from "../../../state/selectors";
@@ -173,7 +174,10 @@ function ResultRow({pageSettings, row, assignment}: ResultRowProps) {
173174
}).flat()
174175
})}
175176
<td className="total-column">
176-
<RS.Button size="sm" onClick={() => openStudentFeedback(assignment, row.user?.id)}>{formatMark(row.feedback?.overallMark?.correct as number, quiz?.total as number, pageSettings.formatAsPercentage)}</RS.Button>
177+
<RS.Button size="sm" id={`attempt-feedback-${row.user?.id}`} onClick={() => openStudentFeedback(assignment, row.user?.id)}>{formatMark(row.feedback?.overallMark?.correct as number, quiz?.total as number, pageSettings.formatAsPercentage)}</RS.Button>
178+
<RS.UncontrolledTooltip placement="bottom" target={`attempt-feedback-${row.user?.id}`}>
179+
View test attempt in new tab.
180+
</RS.UncontrolledTooltip>
177181
</td>
178182
</>}
179183
</tr>;

0 commit comments

Comments
 (0)