fix: add HasVolumeData to AppBackupRow for template rendering

The backups page template references .HasVolumeData on the status table
rows but the AppBackupRow struct was missing this field, causing a
template error.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-02-27 21:48:22 +01:00
parent c929948f27
commit 783830a9d4
+7 -5
View File
@@ -767,10 +767,11 @@ type AppBackupRow struct {
StatusText string // short Hungarian tooltip
// App characteristics
HasHDDData bool
HasDB bool
StorageLabel string
HDDSizeHuman string
HasHDDData bool
HasDB bool
HasVolumeData bool
StorageLabel string
HDDSizeHuman string
// What this app's backup contains (for display)
// e.g., "DB + Konfiguráció + Adatok", "DB + Konfiguráció", "Konfiguráció"
@@ -871,7 +872,7 @@ func (s *Server) buildAppBackupRows(
parts = append(parts, "DB")
}
parts = append(parts, "Konfig")
if app.HasHDDData {
if app.HasHDDData || app.HasVolumeData {
parts = append(parts, "Adatok")
}
contents := strings.Join(parts, " + ")
@@ -881,6 +882,7 @@ func (s *Server) buildAppBackupRows(
DisplayName: app.DisplayName,
HasHDDData: app.HasHDDData,
HasDB: hasDB,
HasVolumeData: app.HasVolumeData,
DriveDisconnected: driveDisconnected,
StorageLabel: app.StorageLabel,
HDDSizeHuman: app.HDDSizeHuman,