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
+3 -1
View File
@@ -769,6 +769,7 @@ type AppBackupRow struct {
// App characteristics
HasHDDData bool
HasDB bool
HasVolumeData bool
StorageLabel string
HDDSizeHuman string
@@ -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,