fix(webui): restore navigation after automation deletion
Let the automation detail dialog own the background interaction lock instead of nesting a second modal menu. Overlapping exit lifecycles during deletion could leave body pointer events disabled after all dialogs closed. Cover confirmed and cancelled deletion with animated Radix lifecycle tests and assert that sidebar navigation works after dismissal. Refs NAN-117.
This commit is contained in:
1 parent
c3fb819203
commit
a2e33893e1
2 files changed
+64
-3
No files matched your search
@@ -553,7 +553,8 @@ function AutomationDetailPanel({
|
||||
{actionKey === `${job.enabled ? "disable" : "enable"}:${job.id}` ? <Loader2 className="mr-1.5 h-3.5 w-3.5 animate-spin" aria-hidden /> : null}
|
||||
{job.enabled ? tx("settings.automations.pause", "Pause") : tx("settings.automations.resume", "Resume")}
|
||||
</Button>
|
||||
<DropdownMenu>
|
||||
{/* The detail dialog owns modality, including during the delete handoff. */}
|
||||
<DropdownMenu modal={false}>
|
||||
<DropdownMenuTrigger asChild>
|
||||
<Button variant="ghost" size="icon" className="h-8 w-8 rounded-full text-muted-foreground" disabled={busy} aria-label={tx("settings.automations.moreActions", "More actions")}>
|
||||
<MoreHorizontal className="h-4 w-4" aria-hidden />
|
||||
|
||||
Reference in new issue
Block a user