mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Update missed capital changes
This commit is contained in:
parent
c6b3f8ad50
commit
42e76c9099
3 changed files with 8 additions and 8 deletions
|
@ -80,7 +80,7 @@ export function supportsAddingToPlaylist(item) {
|
||||||
if (isLocalItem(item)) {
|
if (isLocalItem(item)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (item.CollectionType === CollectionType.LiveTv) {
|
if (item.CollectionType === CollectionType.Livetv) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -231,7 +231,7 @@ export function canConvert (item, user) {
|
||||||
}
|
}
|
||||||
|
|
||||||
const collectionType = item.CollectionType;
|
const collectionType = item.CollectionType;
|
||||||
if (collectionType === CollectionType.LiveTv) {
|
if (collectionType === CollectionType.Livetv) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -250,7 +250,7 @@ export function canConvert (item, user) {
|
||||||
export function canRefreshMetadata (item, user) {
|
export function canRefreshMetadata (item, user) {
|
||||||
if (user.Policy.IsAdministrator) {
|
if (user.Policy.IsAdministrator) {
|
||||||
const collectionType = item.CollectionType;
|
const collectionType = item.CollectionType;
|
||||||
if (collectionType === CollectionType.LiveTv) {
|
if (collectionType === CollectionType.Livetv) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -624,7 +624,7 @@ class AppRouter {
|
||||||
return '#/details?seriesTimerId=' + id + '&serverId=' + serverId;
|
return '#/details?seriesTimerId=' + id + '&serverId=' + serverId;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (item.CollectionType == CollectionType.LiveTv) {
|
if (item.CollectionType == CollectionType.Livetv) {
|
||||||
return '#/livetv.html';
|
return '#/livetv.html';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -673,7 +673,7 @@ class AppRouter {
|
||||||
return url;
|
return url;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (item.CollectionType == CollectionType.TvShows) {
|
if (item.CollectionType == CollectionType.Tvshows) {
|
||||||
url = '#/tv.html?topParentId=' + item.Id;
|
url = '#/tv.html?topParentId=' + item.Id;
|
||||||
|
|
||||||
if (options && options.section === 'latest') {
|
if (options && options.section === 'latest') {
|
||||||
|
|
|
@ -309,7 +309,7 @@ function getItems(instance, params, item, sortBy, startIndex, limit) {
|
||||||
query.IncludeItemTypes = 'MusicAlbum';
|
query.IncludeItemTypes = 'MusicAlbum';
|
||||||
} else if (item.CollectionType === CollectionType.Movies) {
|
} else if (item.CollectionType === CollectionType.Movies) {
|
||||||
query.IncludeItemTypes = 'Movie';
|
query.IncludeItemTypes = 'Movie';
|
||||||
} else if (item.CollectionType === CollectionType.TvShows) {
|
} else if (item.CollectionType === CollectionType.Tvshows) {
|
||||||
query.IncludeItemTypes = 'Series';
|
query.IncludeItemTypes = 'Series';
|
||||||
} else if (item.Type === 'Genre') {
|
} else if (item.Type === 'Genre') {
|
||||||
query.IncludeItemTypes = 'Movie,Series,Video';
|
query.IncludeItemTypes = 'Movie,Series,Video';
|
||||||
|
@ -866,7 +866,7 @@ class ItemsView {
|
||||||
// Folder, Playlist views
|
// Folder, Playlist views
|
||||||
&& itemType !== 'UserView'
|
&& itemType !== 'UserView'
|
||||||
// Only Photo (homevideos) CollectionFolders are supported
|
// Only Photo (homevideos) CollectionFolders are supported
|
||||||
&& !(itemType === 'CollectionFolder' && item?.CollectionType !== CollectionType.HomeVideos)
|
&& !(itemType === 'CollectionFolder' && item?.CollectionType !== CollectionType.Homevideos)
|
||||||
) {
|
) {
|
||||||
// Show Play All buttons
|
// Show Play All buttons
|
||||||
hideOrShowAll(view.querySelectorAll('.btnPlay'), false);
|
hideOrShowAll(view.querySelectorAll('.btnPlay'), false);
|
||||||
|
@ -879,7 +879,7 @@ class ItemsView {
|
||||||
// Folder, Playlist views
|
// Folder, Playlist views
|
||||||
&& itemType !== 'UserView'
|
&& itemType !== 'UserView'
|
||||||
// Only Photo (homevideos) CollectionFolders are supported
|
// Only Photo (homevideos) CollectionFolders are supported
|
||||||
&& !(itemType === 'CollectionFolder' && item?.CollectionType !== CollectionType.HomeVideos)
|
&& !(itemType === 'CollectionFolder' && item?.CollectionType !== CollectionType.Homevideos)
|
||||||
) {
|
) {
|
||||||
// Show Shuffle buttons
|
// Show Shuffle buttons
|
||||||
hideOrShowAll(view.querySelectorAll('.btnShuffle'), false);
|
hideOrShowAll(view.querySelectorAll('.btnShuffle'), false);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue