mirror of
https://github.com/amidaware/tacticalrmm.git
synced 2026-04-27 07:25:56 +03:00
[GH-ISSUE #2081] [Feature request] Implement onbeforeunload for script editors #3240
Labels
No labels
In Process
bug
bug
dev-triage
documentation
duplicate
enhancement
fixed
good first issue
help wanted
integration
invalid
pull-request
question
requires agent update
security
ui tweak
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/tacticalrmm#3240
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @P6g9YHK6 on GitHub (Nov 26, 2024).
Original GitHub issue: https://github.com/amidaware/tacticalrmm/issues/2081
Is your feature request related to a problem? Please describe.
when unsaved changes have been made to a script trmm prompt to save when leaving the script editor.
This does not trigger the builtin browser onbeforeunload api and could very much lead to a loss of work when the event is done on tab/window level rather than trmm
Describe the solution you'd like
when the condition to make the confirmation window appear when leaving are met trigger a beforeunload event
https://developer.mozilla.org/en-US/docs/Web/API/Window/beforeunload_event
Describe alternatives you've considered
N/A
Additional context
