small bug fixes
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user