feat(accessibility): add native keyboard dialogs and semantic account links (U08)
This commit is contained in:
@@ -45,6 +45,9 @@ public partial class AddEntryDialog
|
||||
private string amountText = string.Empty;
|
||||
private bool ValidAmount => Duempelkas.App.Services.BookingInput.TryAmount(amountText, out _);
|
||||
private decimal amount => Duempelkas.App.Services.BookingInput.TryAmount(amountText, out var value) ? value : 0;
|
||||
private string initialState = string.Empty;
|
||||
private string CurrentState => $"{dateText}|{title}|{amountText}|{entryType}";
|
||||
private bool IsDirty => CurrentState != initialState;
|
||||
private bool initialized;
|
||||
private int? initializedEntryId;
|
||||
|
||||
@@ -64,6 +67,7 @@ public partial class AddEntryDialog
|
||||
title = EditEntry.Title;
|
||||
amountText = EditEntry.Amount.ToString("0.00", System.Globalization.CultureInfo.GetCultureInfo("de-DE"));
|
||||
}
|
||||
initialState = CurrentState;
|
||||
}
|
||||
|
||||
#endregion
|
||||
@@ -106,7 +110,7 @@ public partial class AddEntryDialog
|
||||
|
||||
private async Task Cancel()
|
||||
{
|
||||
if (!isSaving) await OnCancel.InvokeAsync();
|
||||
if (!isSaving && modal != null) await modal.RequestCloseAsync();
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
Reference in New Issue
Block a user