mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
rework collection editor
This commit is contained in:
parent
39d4daa2fb
commit
0e1c7cbb7a
21 changed files with 436 additions and 402 deletions
|
@ -327,6 +327,14 @@
|
|||
});
|
||||
}
|
||||
|
||||
if (commands.indexOf('removefromcollection') != -1) {
|
||||
items.push({
|
||||
name: Globalize.translate('ButtonRemoveFromCollection'),
|
||||
id: 'removefromcollection',
|
||||
ironIcon: 'remove'
|
||||
});
|
||||
}
|
||||
|
||||
if (commands.indexOf('removefromplaylist') != -1) {
|
||||
items.push({
|
||||
name: Globalize.translate('ButtonRemoveFromPlaylist'),
|
||||
|
@ -476,6 +484,9 @@
|
|||
case 'removefromplaylist':
|
||||
$(card).parents('.itemsContainer').trigger('removefromplaylist', [playlistItemId]);
|
||||
break;
|
||||
case 'removefromcollection':
|
||||
$(card).parents('.collectionItems').trigger('removefromcollection', [itemId]);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue