small bug fixes

This commit is contained in:
2026-10-11 22:19:34 +02:00
parent c6391a384c
commit 4af7385804
36 changed files with 1558 additions and 399 deletions
+8 -2
View File
@@ -1,3 +1,4 @@
using cfs_tracker.Services;
using CommunityToolkit.Mvvm.ComponentModel;
using CommunityToolkit.Mvvm.Input;
@@ -20,7 +21,12 @@ public partial class DayEntryItemViewModel : ObservableObject
public bool HasDuration => !string.IsNullOrWhiteSpace(DurationText);
public bool HasSymptoms => !string.IsNullOrWhiteSpace(SymptomsText);
public bool HasDetails => HasActivity || HasDuration || HasSymptoms;
public string DetailsButtonText => IsExpanded ? "Details ausblenden" : "Details anzeigen";
public string DetailsButtonText => IsExpanded
? LocalizationService.Translate("DayPage_DetailsHide")
: LocalizationService.Translate("DayPage_DetailsShow");
public string ActivitySummaryText => LocalizationService.Format("DayPage_ActivityFormat", ActivityText);
public string DurationSummaryText => LocalizationService.Format("DayPage_DurationFormat", DurationText);
public string SymptomsSummaryText => LocalizationService.Format("DayPage_SymptomsFormat", SymptomsText);
[ObservableProperty]
private bool isExpanded;
@@ -44,4 +50,4 @@ public partial class DayEntryItemViewModel : ObservableObject
IsExpanded = !IsExpanded;
}
}
}