From 38450eb80855d64d348036be8d7ad3d38c562ec0 Mon Sep 17 00:00:00 2001 From: "TJ @ Ozark Connect" <109822114+tvancott42@users.noreply.github.com> Date: Thu, 7 May 2026 17:22:20 -0500 Subject: [PATCH 1/2] Add removal confirmation to Performance Tweaks (#580) * Add removal confirmation modal to Performance Tweaks Remove buttons now show a confirmation modal before proceeding, matching the deploy confirmation pattern. MongoDB SSD removal includes an extra warning about the UniFi Network restart. * Fix CS8604 null reference warnings in WAN speed attribution * Fix dark spinner inside buttons to use light color --- .../Components/Pages/PerformanceTweaks.razor | 64 ++++++++++++++++++- .../Services/UwnSpeedTestService.cs | 6 +- src/NetworkOptimizer.Web/wwwroot/css/app.css | 5 ++ 3 files changed, 69 insertions(+), 6 deletions(-) diff --git a/src/NetworkOptimizer.Web/Components/Pages/PerformanceTweaks.razor b/src/NetworkOptimizer.Web/Components/Pages/PerformanceTweaks.razor index 4ef60faff..0917b6e6b 100644 --- a/src/NetworkOptimizer.Web/Components/Pages/PerformanceTweaks.razor +++ b/src/NetworkOptimizer.Web/Components/Pages/PerformanceTweaks.razor @@ -352,7 +352,7 @@ @if (tweakStatus?.IsManuallyDeployed != true) { - - } @@ -462,6 +470,34 @@ } + +@if (_showRemoveConfirm && _pendingRemoveTweakId != null) +{ + var removeDef = _tweakDefs.FirstOrDefault(d => d.Id == _pendingRemoveTweakId); +
+
+
+

Confirm Removal

+
+
+

Are you sure you want to remove @(removeDef?.Title ?? _pendingRemoveTweakId)? This will delete the boot script and reverse the tweak's changes on your gateway.

+ @if (_pendingRemoveTweakId == "mongodb-ssd") + { +
+ Note: Removal will briefly stop UniFi Network while migrating MongoDB data back from SSD to eMMC, then restart it. +
+ } +
+ +
+
+} +