mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
apply suggestion change
This commit is contained in:
parent
58b09ca999
commit
8a360772a2
1 changed files with 7 additions and 6 deletions
|
@ -273,13 +273,14 @@ define(['apphost', 'globalize'], function (appHost, globalize) {
|
|||
},
|
||||
|
||||
canRate: function (item) {
|
||||
var itemType = item.Type;
|
||||
|
||||
if (item.Type === 'Program' || item.Type === 'Timer' || item.Type === 'SeriesTimer' || item.Type === 'CollectionFolder' || item.Type === 'UserView' || item.Type === 'Channel' || itemType === 'Season' || itemType === 'Studio') {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!item.UserData) {
|
||||
if (item.Type === 'Program' ||
|
||||
item.Type === 'Timer' ||
|
||||
item.Type === 'SeriesTimer' ||
|
||||
item.Type === 'CollectionFolder' ||
|
||||
item.Type === 'UserView' ||
|
||||
item.Type === 'Channel' ||
|
||||
!item.UserData) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue