feat(ui): constrain decimal input and add stacked timed toasts with uniform actions

This commit is contained in:
2026-11-02 19:19:07 +01:00
parent 22e509d982
commit 86a73b862a
24 changed files with 315 additions and 103 deletions
+8 -4
View File
@@ -101,6 +101,7 @@ public partial class Dashboard
private async Task HandleBackupAsync()
{
if (fileBusy) return;
var busyToast = Toasts.Show("Dateiaktion läuft … Bitte warten.", persistent: true);
fileBusy = true;
fileResult = null;
try
@@ -109,7 +110,7 @@ public partial class Dashboard
}
catch (Exception ex) { fileResult = FileOperationResult.Error(ex); }
finally { fileBusy = false; }
finally { fileBusy = false; Toasts.Dismiss(busyToast); }
}
private Task HandleRestoreAsync()
@@ -126,6 +127,7 @@ public partial class Dashboard
private async Task HandleConfirmRestore()
{
if (fileBusy) return;
var busyToast = Toasts.Show("Dateiaktion läuft … Bitte warten.", persistent: true);
fileBusy = true;
fileResult = null;
try
@@ -136,12 +138,13 @@ public partial class Dashboard
}
catch (Exception ex) { fileResult = FileOperationResult.Error(ex); }
finally { fileBusy = false; }
finally { fileBusy = false; Toasts.Dismiss(busyToast); }
}
private async Task HandleDashboardExportAsync()
{
if (fileBusy) return;
var busyToast = Toasts.Show("Dateiaktion läuft … Bitte warten.", persistent: true);
fileBusy = true;
fileResult = null;
try
@@ -154,7 +157,7 @@ public partial class Dashboard
}
catch (Exception ex) { fileResult = FileOperationResult.Error(ex); }
finally { fileBusy = false; }
finally { fileBusy = false; Toasts.Dismiss(busyToast); }
}
private void OpenYearFilterDialog()
@@ -177,6 +180,7 @@ public partial class Dashboard
private async Task HandleOpenSavedPdf()
{
if (fileBusy) return;
var busyToast = Toasts.Show("Dateiaktion läuft … Bitte warten.", persistent: true);
fileBusy = true;
fileResult = null;
try
@@ -190,7 +194,7 @@ public partial class Dashboard
}
catch (Exception ex) { fileResult = FileOperationResult.Error(ex); }
finally { fileBusy = false; }
finally { fileBusy = false; Toasts.Dismiss(busyToast); }
}
private void CancelOpenSavedPdf()