Files
dc34f6bb3d Do not trigger unsaved changes alert for action modals that cannot contain unsaved changes (#20331)
* Do not trigger unsaved changes alert for action modals that cannot contain unsaved changes

The panel-level unsaved changes alert hooked `beforeunload` whenever any
action was mounted, so read-only modals such as `ViewAction`'s warned
about unsaved changes that cannot exist. Mounted actions now expose a
`hasUnsavedChangesAlert` flag that the client-side guard checks, which
defaults to `false` for actions with a disabled schema and can be
controlled per action with `unsavedChangesAlert()`.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

* Fix unsaved action changes alert edge cases

Co-authored-by: Amp <amp@ampcode.com>

* Prevent stale unsaved action alert state

Co-authored-by: Amp <amp@ampcode.com>

---------

Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
Co-authored-by: Dan Harrin <git@danharrin.com>
Co-authored-by: Amp <amp@ampcode.com>
2026-09-04 14:13:06 +01:00
..
2026-03-23 08:29:46 +00:00
2026-03-23 08:29:46 +00:00
2026-03-23 08:29:46 +00:00
2026-03-23 08:29:46 +00:00