Version 1.0.3
Some checks failed
Gitea/WheresMyMoney/pipeline/head There was a failure building this commit
Some checks failed
Gitea/WheresMyMoney/pipeline/head There was a failure building this commit
- Modify planned payment - minor bug fixes
This commit is contained in:
@@ -5,7 +5,7 @@ namespace WheresMyMoney.Maui;
|
||||
|
||||
public partial class PlannedPaymentsPage : ContentPage
|
||||
{
|
||||
public ObservableCollection<FullPlannedPaymentViewModel> FullPlannedPaymentViewModels { get; set; } = [];
|
||||
public ObservableCollection<FullPlannedPaymentViewModel> FullPlannedPaymentViewModels { get; } = [];
|
||||
|
||||
public PlannedPaymentsPage()
|
||||
{
|
||||
@@ -31,7 +31,7 @@ public partial class PlannedPaymentsPage : ContentPage
|
||||
plannedPayment.DateEnd?.ToString("yyyy-MM-dd") ?? string.Empty, plannedPayment.DateEnd is not null,
|
||||
plannedPayment.IsSubscription,
|
||||
plannedPayment.Reoccurences,
|
||||
ReoccurenceTypeToString(plannedPayment.Reoccurences, plannedPayment.ReoccurenceType)));
|
||||
ReoccurenceTypeToString(plannedPayment.Reoccurences, plannedPayment.ReoccurenceType), null));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -71,9 +71,16 @@ public partial class PlannedPaymentsPage : ContentPage
|
||||
await Navigation.PushModalAsync(new AddPlannedPaymentPage());
|
||||
}
|
||||
|
||||
private async void ModifyPlannedPayment_OnClicked(object? sender, EventArgs e)
|
||||
{
|
||||
if (sender is not MenuFlyoutItem menuItem) return;
|
||||
var id = (int)menuItem.CommandParameter;
|
||||
await Navigation.PushModalAsync(new ModifyPlannedPaymentPage(id));
|
||||
}
|
||||
|
||||
private async void RemovePlannedPayment_OnClicked(object? sender, EventArgs e)
|
||||
{
|
||||
if (sender is not Button button) return;
|
||||
if (sender is not MenuFlyoutItem button) return;
|
||||
var answer = await DisplayAlert("Usunąć?", "Czy na pewno chcesz usunąć tą płatność?", "Tak", "Nie");
|
||||
if (!answer) return;
|
||||
var id = (int)button.CommandParameter;
|
||||
|
||||
Reference in New Issue
Block a user