mirror of
https://github.com/nicotsx/ironmount.git
synced 2025-12-10 12:10:51 +01:00
fix: error details visible in backup page
This commit is contained in:
@@ -124,6 +124,13 @@ export const ScheduleSummary = (props: Props) => {
|
|||||||
{!schedule.lastBackupStatus && "—"}
|
{!schedule.lastBackupStatus && "—"}
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
{schedule.lastBackupError && (
|
||||||
|
<div className="md:col-span-2 lg:col-span-4">
|
||||||
|
<p className="text-xs uppercase text-muted-foreground">Error Details</p>
|
||||||
|
<p className="font-mono text-sm text-red-600 whitespace-pre-wrap break-all">{schedule.lastBackupError}</p>
|
||||||
|
</div>
|
||||||
|
)}
|
||||||
</CardContent>
|
</CardContent>
|
||||||
</Card>
|
</Card>
|
||||||
|
|
||||||
|
|||||||
@@ -98,12 +98,6 @@ export default function Backups({ loaderData }: Route.ComponentProps) {
|
|||||||
{schedule.nextBackupAt ? new Date(schedule.nextBackupAt).toLocaleDateString() : "N/A"}
|
{schedule.nextBackupAt ? new Date(schedule.nextBackupAt).toLocaleDateString() : "N/A"}
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
{schedule.lastBackupError && (
|
|
||||||
<div className="flex items-start justify-between text-sm gap-2">
|
|
||||||
<span className="text-muted-foreground">Error</span>
|
|
||||||
<span className="text-xs text-red-600 text-right line-clamp-2">{schedule.lastBackupError}</span>
|
|
||||||
</div>
|
|
||||||
)}
|
|
||||||
</div>
|
</div>
|
||||||
</CardContent>
|
</CardContent>
|
||||||
</Card>
|
</Card>
|
||||||
|
|||||||
Reference in New Issue
Block a user