disable favorites rate button on season and studio

This commit is contained in:
grafixeyehero 2019-10-23 01:19:14 +03:00
parent e8af133ed2
commit 5099c95c22

View File

@ -273,8 +273,13 @@ 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') {
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;
}