1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

Initial commit

This commit is contained in:
TelepathicWalrus 2023-12-06 17:57:35 +00:00 committed by Bill Thornton
parent 7671d08591
commit e5a55daf55
20 changed files with 46 additions and 56 deletions

View file

@ -10,6 +10,7 @@ import viewManager from '../viewManager/viewManager';
import ServerConnections from '../ServerConnections';
import alert from '../alert';
import { ConnectionState } from '../../utils/jellyfin-apiclient/ConnectionState.ts';
import { CollectionType } from '@jellyfin/sdk/lib/generated-client/';
export const history = createHashHistory();
@ -623,7 +624,7 @@ class AppRouter {
return '#/details?seriesTimerId=' + id + '&serverId=' + serverId;
}
if (item.CollectionType == 'livetv') {
if (item.CollectionType == CollectionType.LiveTv) {
return '#/livetv.html';
}
@ -662,7 +663,7 @@ class AppRouter {
}
if (context !== 'folders' && !itemHelper.isLocalItem(item)) {
if (item.CollectionType == 'movies') {
if (item.CollectionType == 'Movies') {
url = '#/movies.html?topParentId=' + item.Id;
if (options && options.section === 'latest') {
@ -672,7 +673,7 @@ class AppRouter {
return url;
}
if (item.CollectionType == 'tvshows') {
if (item.CollectionType == CollectionType.TvShows) {
url = '#/tv.html?topParentId=' + item.Id;
if (options && options.section === 'latest') {
@ -682,7 +683,7 @@ class AppRouter {
return url;
}
if (item.CollectionType == 'music') {
if (item.CollectionType == CollectionType.Music) {
url = '#/music.html?topParentId=' + item.Id;
if (options?.section === 'latest') {