feat(ui): constrain decimal input and add stacked timed toasts with uniform actions
This commit is contained in:
@@ -81,6 +81,7 @@ public partial class AddTransferDialog
|
||||
private async Task Save()
|
||||
{
|
||||
if (isSaving || completed || (committedResult == null && !CanSave)) return;
|
||||
var busyToast = Toasts.Show("Wird gespeichert …", persistent: true);
|
||||
isSaving = true;
|
||||
saveError = null;
|
||||
saveDetails = null;
|
||||
@@ -106,8 +107,9 @@ public partial class AddTransferDialog
|
||||
? "Speichern fehlgeschlagen. Die Eingaben bleiben erhalten. Bitte erneut versuchen."
|
||||
: "Die Buchung ist gespeichert. Die Ansicht konnte nicht aktualisiert werden. Bitte Ansicht aktualisieren; es wird keine weitere Buchung erzeugt.";
|
||||
saveDetails = ex.Message;
|
||||
Toasts.Show(saveError, Duempelkas.App.Services.ToastKind.Error, saveDetails);
|
||||
}
|
||||
finally { isSaving = false; }
|
||||
finally { isSaving = false; Toasts.Dismiss(busyToast); }
|
||||
}
|
||||
|
||||
private async Task Cancel()
|
||||
|
||||
Reference in New Issue
Block a user