diff --git a/src/MikrotikInstaller.App/ViewModels/Steps/SummaryStepViewModel.cs b/src/MikrotikInstaller.App/ViewModels/Steps/SummaryStepViewModel.cs
index 86d08e5..b457d27 100644
--- a/src/MikrotikInstaller.App/ViewModels/Steps/SummaryStepViewModel.cs
+++ b/src/MikrotikInstaller.App/ViewModels/Steps/SummaryStepViewModel.cs
@@ -37,6 +37,16 @@ public partial class SummaryStepViewModel : WizardStepViewModelBase
[ObservableProperty]
private string? _progressText;
+ /// Fortschrittsbalken: erledigte Schritte inkl. Sicherung (Mac v1.4.0).
+ [ObservableProperty]
+ private int _progressValue;
+
+ [ObservableProperty]
+ private int _progressMaximum = 1;
+
+ /// Abschluss-Übersicht: was tatsächlich ausgeführt wurde.
+ public ObservableCollection CompletedSteps { get; } = [];
+
[ObservableProperty]
private string? _errorMessage;
@@ -105,19 +115,29 @@ public partial class SummaryStepViewModel : WizardStepViewModelBase
}
IsApplying = true;
+ _session.IsDeviceBusy = true;
ErrorMessage = null;
+ CompletedSteps.Clear();
ApplyCommand.NotifyCanExecuteChanged();
try
{
- ProgressText = "Sicherung wird auf dem Gerät erstellt …";
- BackupName = await _session.CreateSafetyBackupAsync(_session.Client);
-
var actions = GetAllActions();
+ ProgressMaximum = actions.Count + 1;
+ ProgressValue = 0;
+
+ // Die Sicherung ist ein eigener, sichtbarer Schritt.
+ ProgressText = $"Schritt 1 von {ProgressMaximum}: Sicherung auf dem Gerät erstellen";
+ BackupName = await _session.CreateSafetyBackupAsync(_session.Client);
+ CompletedSteps.Add($"Sicherung „{BackupName}“ auf dem Gerät erstellt");
+ ProgressValue = 1;
+
for (var i = 0; i < actions.Count; i++)
{
- ProgressText = $"Schritt {i + 1} von {actions.Count}: {actions[i].Description}";
+ ProgressText = $"Schritt {i + 2} von {ProgressMaximum}: {actions[i].Description}";
await actions[i].ApplyAsync(_session.Client, CancellationToken.None);
+ CompletedSteps.Add(actions[i].Description);
+ ProgressValue = i + 2;
}
ProgressText = null;
@@ -136,6 +156,7 @@ public partial class SummaryStepViewModel : WizardStepViewModelBase
finally
{
IsApplying = false;
+ _session.IsDeviceBusy = false;
ApplyCommand.NotifyCanExecuteChanged();
}
}
diff --git a/src/MikrotikInstaller.App/Views/Steps/SummaryStepView.xaml b/src/MikrotikInstaller.App/Views/Steps/SummaryStepView.xaml
index ea3892b..ec53487 100644
--- a/src/MikrotikInstaller.App/Views/Steps/SummaryStepView.xaml
+++ b/src/MikrotikInstaller.App/Views/Steps/SummaryStepView.xaml
@@ -18,6 +18,34 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -59,10 +87,11 @@
Command="{Binding ExportPdfCommand}"
Visibility="{Binding IsFinished, Converter={StaticResource BoolToVisibilityConverter}}" />
-
-
-
+
+
+
+
{
var line = $"„{vlan.Name}\" — ein eigenes, getrenntes Netzwerk ({IpNetworkHelper.GetNetworkCidr(vlan.RouterAddressCidr)}).";
- if (vlan.AccessPorts is { Count: > 0 } ports)
- {
- line += $" Direkt nutzbar über Anschluss {string.Join(", ", ports.Select(p => $"„{p}\""))}.";
- }
+ line += vlan.AccessPorts is { Count: > 0 } ports
+ ? $" Direkt nutzbar über Anschluss {string.Join(", ", ports.Select(p => $"„{p}\""))}."
+ : " Erreichbar über VLAN-fähige Geräte an den Anschlüssen des Heimnetzes (getaggt).";
return line;
})