video-modal: fix copy-magnet button doing nothing (wrong event name)

Same dead-event bug as the embed button: handleCopyRequest dispatched
"action:copy", but ModalManager listens for "video:copy-magnet"
(app.handleCopyMagnet) and #copyMagnetBtn has no popover fallback — so the
button did nothing. Dispatch "video:copy-magnet". Extended the regression
test to cover it.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
This commit is contained in:
thePR0M3TH3ANandClaude Opus 4.8 committed 2026-06-23 20:11:38 -04:00
1 parent 00bcff7bb5
commit 084faa3543
3 files changed
+23 -6

No files matched your search

+4 -1
View File
@@ -2994,7 +2994,10 @@ export class VideoModal {
}
handleCopyRequest() {
this.dispatch("action:copy", { video: this.activeVideo });
// ModalManager listens for "video:copy-magnet" (it runs app.handleCopyMagnet).
// The previous "action:copy" name had no listener, so the copy-magnet button
// did nothing — same dead-event bug as the embed button.
this.dispatch("video:copy-magnet", { video: this.activeVideo });
}
handleShareRequest(event) {