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

unify sync components

This commit is contained in:
Luke Pulverenti 2016-12-24 14:15:27 -05:00
parent 55b5cebda5
commit db403c3cd4
21 changed files with 447 additions and 279 deletions

View file

@ -111,10 +111,20 @@ define(['apphost'], function (appHost) {
return user.Policy.IsAdministrator;
}
function isLocalItem(item) {
if (item && item.Id && item.Id.indexOf('local') === 0) {
return true;
}
return false;
}
return {
getDisplayName: getDisplayName,
supportsAddingToCollection: supportsAddingToCollection,
supportsAddingToPlaylist: supportsAddingToPlaylist,
isLocalItem: isLocalItem,
canIdentify: function (user, itemType) {