Privacy-first password manager with built-in email aliasing. Fully encrypted and self-hostable.
Add confirm dialog to admin when stopping services (#1520)
Leendert de Borstc7f142de7ec8
diff --git a/apps/server/AliasVault.Admin/Main/Components/WorkerStatus/ServiceControl.razor b/apps/server/AliasVault.Admin/Main/Components/WorkerStatus/ServiceControl.razorindex 17681cfbf..da72b77be 100644--- a/apps/server/AliasVault.Admin/Main/Components/WorkerStatus/ServiceControl.razor+++ b/apps/server/AliasVault.Admin/Main/Components/WorkerStatus/ServiceControl.razor@@ -172,6 +172,18 @@// If service not started and not starting, clicking should start it. Otherwise, stop it.if (service.CurrentStatus == "Started" || service.DesiredStatus == "Started"){+ // Show confirmation modal before stopping a service.+ var confirmed = await ConfirmModalService.ShowConfirmation(+ "Stop " + service.DisplayName + "?",+ "Are you sure you want to stop the " + service.DisplayName + " service?\n\nThe service will be unavailable until it is started again.",+ "Stop service",+ "Cancel");++ if (!confirmed)+ {+ return;+ }+service.DesiredStatus = "Stopped";}else