mirror of
https://github.com/sussy-code/smov.git
synced 2025-01-01 16:37:39 +01:00
Add retry button to ScrapeError
This commit is contained in:
parent
9cce97967d
commit
efe3639ec8
2 changed files with 17 additions and 8 deletions
|
@ -391,6 +391,7 @@
|
||||||
"notFound": {
|
"notFound": {
|
||||||
"badge": "Not found",
|
"badge": "Not found",
|
||||||
"detailsButton": "Show details",
|
"detailsButton": "Show details",
|
||||||
|
"reloadButton": "Try again",
|
||||||
"homeButton": "Go home",
|
"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>",
|
"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"
|
"title": "We couldn't find that"
|
||||||
|
|
|
@ -58,6 +58,14 @@ export function ScrapeErrorPart(props: ScrapeErrorPartProps) {
|
||||||
/>
|
/>
|
||||||
</Paragraph>
|
</Paragraph>
|
||||||
<div className="flex gap-3">
|
<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
|
<Button
|
||||||
href="/"
|
href="/"
|
||||||
theme="secondary"
|
theme="secondary"
|
||||||
|
@ -66,15 +74,15 @@ export function ScrapeErrorPart(props: ScrapeErrorPartProps) {
|
||||||
>
|
>
|
||||||
{t("player.scraping.notFound.homeButton")}
|
{t("player.scraping.notFound.homeButton")}
|
||||||
</Button>
|
</Button>
|
||||||
<Button
|
|
||||||
onClick={() => modal.show()}
|
|
||||||
theme="purple"
|
|
||||||
padding="md:px-12 p-2.5"
|
|
||||||
className="mt-6"
|
|
||||||
>
|
|
||||||
{t("player.scraping.notFound.detailsButton")}
|
|
||||||
</Button>
|
|
||||||
</div>
|
</div>
|
||||||
|
<Button
|
||||||
|
onClick={() => modal.show()}
|
||||||
|
theme="purple"
|
||||||
|
padding="md:px-12 p-2.5"
|
||||||
|
className="mt-6"
|
||||||
|
>
|
||||||
|
{t("player.scraping.notFound.detailsButton")}
|
||||||
|
</Button>
|
||||||
</ErrorContainer>
|
</ErrorContainer>
|
||||||
{error ? (
|
{error ? (
|
||||||
<ErrorCardInModal
|
<ErrorCardInModal
|
||||||
|
|
Loading…
Reference in a new issue