fix(webui): confirm before loading from the process-probe dialog

The 加载 button added in #189 injected directly, unlike the process-list
load which routes through the confirm dialog. Fire the same
setConfirm({kind:'load'}) flow so both entry points share one
confirmation step.
This commit is contained in:
DrSmoothl committed 2026-07-07 22:36:19 +08:00
1 parent 9914db69e6
commit cd04271b69
1 file changed
+1 -1
@@ -265,7 +265,7 @@ export function ProcessesPage() {
onOpenChange={(open) => !open && setProbeDialog(null)}
onLoad={() => {
if (probeDialog) {
void load(probeDialog.pid);
setConfirm({ kind: 'load', pid: probeDialog.pid, name: probeDialog.name });
setProbeDialog(null);
}
}}