mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
add sharing function
This commit is contained in:
parent
93ad16971d
commit
54afe9d0c2
22 changed files with 17346 additions and 17048 deletions
|
@ -323,6 +323,14 @@
|
|||
});
|
||||
}
|
||||
|
||||
if (user.Policy.EnablePublicSharing) {
|
||||
items.push({
|
||||
name: Globalize.translate('ButtonShare'),
|
||||
id: 'share',
|
||||
ironIcon: 'share'
|
||||
});
|
||||
}
|
||||
|
||||
if (commands.indexOf('sync') != -1) {
|
||||
items.push({
|
||||
name: Globalize.translate('ButtonSync'),
|
||||
|
@ -445,6 +453,11 @@
|
|||
case 'externalplayer':
|
||||
LibraryBrowser.playInExternalPlayer(itemId);
|
||||
break;
|
||||
case 'share':
|
||||
require(['sharingmanager'], function () {
|
||||
SharingManager.showMenu(Dashboard.getCurrentUserId(), itemId);
|
||||
});
|
||||
break;
|
||||
case 'removefromplaylist':
|
||||
$(card).parents('.itemsContainer').trigger('removefromplaylist', [playlistItemId]);
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue