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