diff --git a/src/assets/locales/en.json b/src/assets/locales/en.json index 14ca4b09..c765342f 100644 --- a/src/assets/locales/en.json +++ b/src/assets/locales/en.json @@ -458,6 +458,7 @@ "logout": "Logout", "reset": "Reset custom server", "text": "Failed to load your profile", + "reload": "Reload", "textWithReset": "Failed to load your profile from your custom server, want to reset back to the default server?" }, "migration": { diff --git a/src/index.tsx b/src/index.tsx index d5fffaae..608f3f11 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -54,6 +54,7 @@ function ErrorScreen(props: { children: ReactNode; showResetButton?: boolean; showLogoutButton?: boolean; + showReloadButton?: boolean; }) { const { t } = useTranslation(); const { logout } = useAuth(); @@ -91,6 +92,13 @@ function ErrorScreen(props: { ) : null} + {props.showReloadButton ? ( +
+ +
+ ) : null} ); }