mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
update shared components
This commit is contained in:
parent
d26f22c852
commit
ca36b18094
8 changed files with 28 additions and 19 deletions
|
@ -60,6 +60,7 @@ define(['apphost'], function (appHost) {
|
|||
}
|
||||
|
||||
function supportsAddingToPlaylist(item) {
|
||||
|
||||
if (item.Type == 'Program') {
|
||||
return false;
|
||||
}
|
||||
|
@ -69,7 +70,7 @@ define(['apphost'], function (appHost) {
|
|||
if (item.Type == 'SeriesTimer') {
|
||||
return false;
|
||||
}
|
||||
return item.RunTimeTicks || item.IsFolder || item.Type == "Genre" || item.Type == "MusicGenre" || item.Type == "MusicArtist";
|
||||
return item.MediaType || item.IsFolder || item.Type == "Genre" || item.Type == "MusicGenre" || item.Type == "MusicArtist";
|
||||
}
|
||||
|
||||
function canEdit(user, itemType) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue