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:
@@ -767,10 +767,11 @@ type AppBackupRow struct {
|
|||||||
StatusText string // short Hungarian tooltip
|
StatusText string // short Hungarian tooltip
|
||||||
|
|
||||||
// App characteristics
|
// App characteristics
|
||||||
HasHDDData bool
|
HasHDDData bool
|
||||||
HasDB bool
|
HasDB bool
|
||||||
StorageLabel string
|
HasVolumeData bool
|
||||||
HDDSizeHuman string
|
StorageLabel string
|
||||||
|
HDDSizeHuman string
|
||||||
|
|
||||||
// What this app's backup contains (for display)
|
// What this app's backup contains (for display)
|
||||||
// e.g., "DB + Konfiguráció + Adatok", "DB + Konfiguráció", "Konfiguráció"
|
// 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, "DB")
|
||||||
}
|
}
|
||||||
parts = append(parts, "Konfig")
|
parts = append(parts, "Konfig")
|
||||||
if app.HasHDDData {
|
if app.HasHDDData || app.HasVolumeData {
|
||||||
parts = append(parts, "Adatok")
|
parts = append(parts, "Adatok")
|
||||||
}
|
}
|
||||||
contents := strings.Join(parts, " + ")
|
contents := strings.Join(parts, " + ")
|
||||||
@@ -881,6 +882,7 @@ func (s *Server) buildAppBackupRows(
|
|||||||
DisplayName: app.DisplayName,
|
DisplayName: app.DisplayName,
|
||||||
HasHDDData: app.HasHDDData,
|
HasHDDData: app.HasHDDData,
|
||||||
HasDB: hasDB,
|
HasDB: hasDB,
|
||||||
|
HasVolumeData: app.HasVolumeData,
|
||||||
DriveDisconnected: driveDisconnected,
|
DriveDisconnected: driveDisconnected,
|
||||||
StorageLabel: app.StorageLabel,
|
StorageLabel: app.StorageLabel,
|
||||||
HDDSizeHuman: app.HDDSizeHuman,
|
HDDSizeHuman: app.HDDSizeHuman,
|
||||||
|
|||||||
Reference in New Issue
Block a user