1
0
Fork 0
mirror of https://github.com/sussy-code/smov.git synced 2024-12-29 16:07:40 +01:00

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