Add retry button to ScrapeError

This commit is contained in:
Cooper Ransom 2024-02-29 14:23:52 -05:00
parent 9cce97967d
commit efe3639ec8
2 changed files with 17 additions and 8 deletions

View File

@ -391,6 +391,7 @@
"notFound": {
"badge": "Not found",
"detailsButton": "Show details",
"reloadButton": "Try again",
"homeButton": "Go home",
"text": "We can not find the media you are looking for or no one provides it... <bold>Did you enable the extension for this site?</bold>",
"title": "We couldn't find that"

View File

@ -58,6 +58,14 @@ export function ScrapeErrorPart(props: ScrapeErrorPartProps) {
/>
</Paragraph>
<div className="flex gap-3">
<Button
onClick={() => window.location.reload()}
theme="secondary"
padding="md:px-12 p-2.5"
className="mt-6"
>
{t("player.scraping.notFound.reloadButton")}
</Button>
<Button
href="/"
theme="secondary"
@ -66,15 +74,15 @@ export function ScrapeErrorPart(props: ScrapeErrorPartProps) {
>
{t("player.scraping.notFound.homeButton")}
</Button>
<Button
onClick={() => modal.show()}
theme="purple"
padding="md:px-12 p-2.5"
className="mt-6"
>
{t("player.scraping.notFound.detailsButton")}
</Button>
</div>
<Button
onClick={() => modal.show()}
theme="purple"
padding="md:px-12 p-2.5"
className="mt-6"
>
{t("player.scraping.notFound.detailsButton")}
</Button>
</ErrorContainer>
{error ? (
<ErrorCardInModal