fix: error handling

This commit is contained in:
2026-03-26 22:32:45 +01:00
parent e8cb877497
commit 64acf24f27
14 changed files with 204 additions and 245 deletions

View File

@@ -224,7 +224,13 @@ export function ServerConfigurationTabs({
{isConfigTab && (
<div className="border-border-muted bg-overlay flex items-center justify-between border-b px-5 py-3">
<div className="flex items-center gap-3">
{saveError && <p className="text-red text-sm">{saveError}</p>}
{saveError && (
<ul className="flex flex-col gap-0.5">
{saveError.split('\n').map((line, i) => (
<li key={i} className="text-red text-sm">• {line}</li>
))}
</ul>
)}
{saveSuccess && <p className="text-green text-sm">All configurations saved.</p>}
</div>
<div className="flex items-center gap-4">