mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-11-06 21:02:28 +00:00
Refactor video modal sharing options into a unified Share menu
- Replaced the standalone "Copy Magnet" button and "Share" button with a new Share menu. - Implemented `createVideoShareMenuPanel` to render the new menu with "Copy URL", "Share on Nostr", "Copy Magnet", and "Copy CDN Link" options. - Updated `VideoModal.js` to manage the share menu state and handle actions. - Added `video:share-nostr` and `video:copy-cdn` event handlers in `app.js`. - Removed the `#copyMagnetBtn` element from `video-modal.html`. - Preserved existing functionality for "Copy URL" and "Copy Magnet". - "Share on Nostr" is currently a placeholder logging a message, disabled for logged-out users. - "Copy CDN Link" is disabled if no URL is available.
This commit is contained in:
1 parent
4c9ae3b882
commit
bd868fb7ea
8 files changed
+140
-24
No files matched your search
Binary file not shown.
|
After Width: | Height: | Size: 315 KiB |
Reference in new issue
Block a user