Fix: Snapshot-Datum 'Invalid Date' - Feld created statt creation
Backend liefert das Snapshot-Erstellungsdatum als 'created' (Unix-Timestamp), das Frontend-Interface/Rendering erwartete aber 'creation'. Feld angeglichen und creation_datetime im Interface ergänzt. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -190,7 +190,7 @@ export default function SnapshotsPage() {
|
|||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
<td className="py-3 px-4 font-mono text-xs font-medium">{tag}</td>
|
<td className="py-3 px-4 font-mono text-xs font-medium">{tag}</td>
|
||||||
<td className="py-3 px-4 text-muted-foreground">{formatUnix(snap.creation)}</td>
|
<td className="py-3 px-4 text-muted-foreground">{formatUnix(snap.created)}</td>
|
||||||
<td className="py-3 px-4">{formatBytes(snap.used)}</td>
|
<td className="py-3 px-4">{formatBytes(snap.used)}</td>
|
||||||
<td className="py-3 px-4">{formatBytes(snap.referenced)}</td>
|
<td className="py-3 px-4">{formatBytes(snap.referenced)}</td>
|
||||||
<td className="py-3 px-4 text-right">
|
<td className="py-3 px-4 text-right">
|
||||||
|
|||||||
+2
-1
@@ -47,9 +47,10 @@ export interface DatasetProperties {
|
|||||||
export interface Snapshot {
|
export interface Snapshot {
|
||||||
name: string
|
name: string
|
||||||
dataset?: string
|
dataset?: string
|
||||||
creation: number
|
created: number
|
||||||
used: number
|
used: number
|
||||||
referenced: number
|
referenced: number
|
||||||
|
creation_datetime?: string
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface SambaShare {
|
export interface SambaShare {
|
||||||
|
|||||||
Reference in New Issue
Block a user