Layout and Push Fix

This commit is contained in:
2026-03-28 23:44:56 +01:00
parent 74722b5e81
commit cf3d7557aa
13 changed files with 429 additions and 282 deletions
@@ -35,6 +35,9 @@ public partial class NotificationScheduleItemViewModel : ObservableObject
[ObservableProperty]
private bool sunday;
public string IsEnabledButtonText => IsEnabled ? "Aktiv" : "Inaktiv";
public IRelayCommand ToggleIsEnabledCommand { get; }
public IRelayCommand ToggleMondayCommand { get; }
public IRelayCommand ToggleTuesdayCommand { get; }
public IRelayCommand ToggleWednesdayCommand { get; }
@@ -45,6 +48,7 @@ public partial class NotificationScheduleItemViewModel : ObservableObject
public NotificationScheduleItemViewModel()
{
ToggleIsEnabledCommand = new RelayCommand(() => IsEnabled = !IsEnabled);
ToggleMondayCommand = new RelayCommand(() => Monday = !Monday);
ToggleTuesdayCommand = new RelayCommand(() => Tuesday = !Tuesday);
ToggleWednesdayCommand = new RelayCommand(() => Wednesday = !Wednesday);
@@ -54,6 +58,11 @@ public partial class NotificationScheduleItemViewModel : ObservableObject
ToggleSundayCommand = new RelayCommand(() => Sunday = !Sunday);
}
partial void OnIsEnabledChanged(bool value)
{
OnPropertyChanged(nameof(IsEnabledButtonText));
}
public int ToWeekdayMask()
{
var mask = NotificationWeekdays.None;