Merge pull request #5622 from grafixeyehero/Add-homevideos-view
Add Home videos and Photos View
This commit is contained in:
@@ -36,6 +36,12 @@ const movieOrFavoriteOptions = [
|
||||
{ label: 'Runtime', value: ItemSortBy.Runtime }
|
||||
];
|
||||
|
||||
const photosOrPhotoAlbumsOptions = [
|
||||
{ label: 'Name', value: ItemSortBy.SortName },
|
||||
{ label: 'OptionRandom', value: ItemSortBy.Random },
|
||||
{ label: 'OptionDateAdded', value: ItemSortBy.DateCreated }
|
||||
];
|
||||
|
||||
const sortOptionsMapping: SortOptionsMapping = {
|
||||
[LibraryTab.Movies]: movieOrFavoriteOptions,
|
||||
[LibraryTab.Trailers]: [
|
||||
@@ -89,6 +95,16 @@ const sortOptionsMapping: SortOptionsMapping = {
|
||||
{ label: 'OptionReleaseDate', value: ItemSortBy.PremiereDate },
|
||||
{ label: 'Runtime', value: ItemSortBy.Runtime },
|
||||
{ label: 'OptionRandom', value: ItemSortBy.Random }
|
||||
],
|
||||
[LibraryTab.PhotoAlbums]: photosOrPhotoAlbumsOptions,
|
||||
[LibraryTab.Photos]: photosOrPhotoAlbumsOptions,
|
||||
[LibraryTab.Videos]: [
|
||||
{ label: 'Name', value: ItemSortBy.SortName },
|
||||
{ label: 'OptionDateAdded', value: ItemSortBy.DateCreated },
|
||||
{ label: 'OptionDatePlayed', value: ItemSortBy.DatePlayed },
|
||||
{ label: 'OptionPlayCount', value: ItemSortBy.PlayCount },
|
||||
{ label: 'Runtime', value: ItemSortBy.Runtime },
|
||||
{ label: 'OptionRandom', value: ItemSortBy.Random }
|
||||
]
|
||||
};
|
||||
|
||||
|
||||
@@ -56,6 +56,8 @@ const FiltersStatus: FC<FiltersStatusProps> = ({
|
||||
&& viewType !== LibraryTab.AlbumArtists
|
||||
&& viewType !== LibraryTab.Songs
|
||||
&& viewType !== LibraryTab.Channels
|
||||
&& viewType !== LibraryTab.PhotoAlbums
|
||||
&& viewType !== LibraryTab.Photos
|
||||
) {
|
||||
visibleFiltersStatus.push(ItemFilter.IsUnplayed);
|
||||
visibleFiltersStatus.push(ItemFilter.IsPlayed);
|
||||
|
||||
Reference in New Issue
Block a user