1
0
Fork 0
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:
Luke Pulverenti 2016-10-09 00:58:57 -04:00
parent d26f22c852
commit ca36b18094
8 changed files with 28 additions and 19 deletions

View file

@ -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) {