mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-11-09 06:12:56 +00:00
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:
1 parent
00bcff7bb5
commit
084faa3543
3 files changed
+23
-6
No files matched your search
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user