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
@@ -1,4 +1,5 @@
using cfs_tracker.Models;
using cfs_tracker.Services;
using CommunityToolkit.Mvvm.ComponentModel;
using CommunityToolkit.Mvvm.Input;
@@ -35,7 +36,9 @@ public partial class NotificationScheduleItemViewModel : ObservableObject
[ObservableProperty]
private bool sunday;
public string IsEnabledButtonText => IsEnabled ? "Aktiv" : "Inaktiv";
public string IsEnabledButtonText => IsEnabled
? LocalizationService.Translate("Common_Active")
: LocalizationService.Translate("Common_Inactive");
public IRelayCommand ToggleIsEnabledCommand { get; }
public IRelayCommand ToggleMondayCommand { get; }
@@ -90,4 +93,4 @@ public partial class NotificationScheduleItemViewModel : ObservableObject
Saturday = flags.HasFlag(NotificationWeekdays.Saturday);
Sunday = flags.HasFlag(NotificationWeekdays.Sunday);
}
}
}