1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

update components

This commit is contained in:
Luke Pulverenti 2016-10-02 23:49:52 -04:00
parent c7b23209cf
commit 6f73ce4cc3
16 changed files with 332 additions and 247 deletions

View file

@ -46,7 +46,7 @@ define(['apphost'], function (appHost) {
function supportsAddingToCollection(item) {
if (item.Type == 'Timer') {
if (item.Type == 'Timer' || item.Type == 'SeriesTimer') {
return false;
}
@ -62,6 +62,9 @@ define(['apphost'], function (appHost) {
if (item.Type == 'Timer') {
return false;
}
if (item.Type == 'SeriesTimer') {
return false;
}
return item.RunTimeTicks || item.IsFolder || item.Type == "Genre" || item.Type == "MusicGenre" || item.Type == "MusicArtist";
}
@ -122,7 +125,7 @@ define(['apphost'], function (appHost) {
return false;
}
return itemType != 'Timer' && canEdit(user, itemType);
return itemType != 'Timer' && itemType != 'SeriesTimer' && canEdit(user, itemType);
},
canSync: function (user, item) {
@ -139,6 +142,9 @@ define(['apphost'], function (appHost) {
if (item.Type == 'Timer') {
return false;
}
if (item.Type == 'SeriesTimer') {
return false;
}
return user.Policy.EnablePublicSharing && appHost.supports('sharing');
}
};