Skip to content

Commit

Permalink
Link to KB article on moodle related error dialogs
Browse files Browse the repository at this point in the history
  • Loading branch information
marcospri committed Apr 8, 2024
1 parent a7fc09a commit 9a47623
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions lms/static/scripts/frontend_apps/components/LaunchErrorDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,17 @@ function ExternalLink({ children, href }: { children: string; href: string }) {
);
}

/**
* Link to a generic KB article for Moodle error codes.
*/
function MoodleKBLink() {
return (
<ExternalLink href="https://web.hypothes.is/help/troubleshooting-lms-app-error-messages-in-moodle/">
Troubleshooting LMS App Error Messages in Moodle
</ExternalLink>
);
}

/**
* Render an error that prevents an LTI launch from completing successfully.
*
Expand Down Expand Up @@ -185,6 +196,9 @@ export default function LaunchErrorDialog({
To fix the issue an instructor needs to edit this assignment and
select a different file.
</p>
<p>
<MoodleKBLink />
</p>
</ErrorModal>
);

Expand All @@ -199,6 +213,9 @@ export default function LaunchErrorDialog({
<li>The page has been deleted from Moodle</li>
<li>The course was copied from another course</li>
</ul>
<p>
<MoodleKBLink />
</p>
</ErrorModal>
);

Expand Down Expand Up @@ -347,6 +364,9 @@ export default function LaunchErrorDialog({
settings and select a new grouping.
</b>
</p>
<p>
<MoodleKBLink />
</p>
</ErrorModal>
);

Expand Down Expand Up @@ -398,6 +418,9 @@ export default function LaunchErrorDialog({
grouping for this assignment.
</b>
</p>
<p>
<MoodleKBLink />
</p>
</ErrorModal>
);

Expand Down Expand Up @@ -479,6 +502,9 @@ export default function LaunchErrorDialog({
account to one of this assignment&apos;s groupings.
</b>
</p>
<p>
<MoodleKBLink />
</p>
</ErrorModal>
);

Expand Down

0 comments on commit 9a47623

Please sign in to comment.