mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-21 14:20:42 +08:00
Improve UX when a node is unreachable
When a saved node (e.g. localhost) is down, the app previously showed a dead-end "Node not found" page with no way to navigate away. Now the not-found page displays the seed selector inline with the error title, showing which node failed and letting users switch to a different one directly. The same treatment applies when navigating to a repo on an unreachable node.
This commit is contained in:
@@ -77,5 +77,5 @@
|
||||
</div>
|
||||
{/if}
|
||||
{:catch error}
|
||||
{router.push(handleError(error, utils.baseUrlToString(baseUrl)))}
|
||||
{router.push(handleError(error, baseUrl))}
|
||||
{/await}
|
||||
|
||||
@@ -67,7 +67,7 @@ export async function loadUserRoute({
|
||||
error instanceof ResponseError ||
|
||||
error instanceof ResponseParseError
|
||||
) {
|
||||
return handleError(error, utils.baseUrlToString(api.baseUrl));
|
||||
return handleError(error, api.baseUrl);
|
||||
} else {
|
||||
return unreachableError();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user