mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
disable favorites rate button on season and studio
This commit is contained in:
parent
e8af133ed2
commit
5099c95c22
1 changed files with 6 additions and 1 deletions
|
@ -273,8 +273,13 @@ define(['apphost', 'globalize'], function (appHost, globalize) {
|
||||||
},
|
},
|
||||||
|
|
||||||
canRate: function (item) {
|
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') {
|
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) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue