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:
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);
|
||||
}
|
||||
}}
|
||||
|
||||
Reference in new issue
Block a user