mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-10-29 00:42:30 +00:00
The share popover's menu items (Copy URL, Copy Magnet, Copy CDN Link, Share on Nostr) only set `data-action` — like the ⋯ menu — but unlike the ⋯ menu (which moreMenuController delegates) nothing wired their clicks, so they did nothing. Only the bottom "forced-source" test links self-wire. Same dead-button class as the old embed/creator-link bugs. Add a delegated click handler on the share panel (bindShareMenuActions) that routes each action to the event videoModalController already handles: copy-magnet → video:copy-magnet, copy-cdn → video:copy-cdn, share-nostr → video:share-nostr, and share (Copy URL) → a new video:copy-url (buildShareUrl makes the plain `?v=<nevent>` deep link; controller copies it with a toast). Forced-source links are skipped (they self-wire). Tests: tests/video-modal-controllers.test.mjs (+5 routing scenarios, 24/24). Lint + build clean. Co-Authored-By: Claude Opus 4.8 <[email protected]>