update error message

This commit is contained in:
Pas 2025-12-27 22:27:52 -07:00
parent 681172fe8e
commit cf1527dc8a
2 changed files with 11 additions and 4 deletions

View file

@ -1143,7 +1143,8 @@
"description": "<0>Migrate my data</0> to a new server.",
"link": "Migrate my data"
},
"documentation": "Backend documentation"
"documentation": "Backend documentation",
"error": "Error connecting to backend"
},
"setup": {
"doSetup": "Do setup",

View file

@ -67,9 +67,15 @@ function BackendOptionItem({
</span>
</div>
) : option.error ? (
<div>
<p className="text-white font-medium">{hostname}</p>
<p className="text-type-secondary text-sm">{option.url}</p>
<div className="flex items-center gap-2">
<div className="flex flex-col">
<p className="text-white font-medium">{hostname}</p>
<p className="text-type-secondary text-sm">{option.url}</p>
</div>
<Icon icon={Icons.WARNING} className="text-type-danger text-sm" />
<span className="text-type-danger text-sm">
{t("settings.connections.server.error")}
</span>
</div>
) : option.meta ? (
<div>