mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
refactor: use ItemSortBy from generated SDK
This commit is contained in:
parent
2e4eb68d59
commit
52c150a2e7
2 changed files with 17 additions and 15 deletions
|
@ -7,6 +7,7 @@ import ServerConnections from 'components/ServerConnections';
|
|||
import dom from 'scripts/dom';
|
||||
import globalize from 'scripts/globalize';
|
||||
import { getBackdropShape, getPortraitShape, getSquareShape } from 'utils/card';
|
||||
import { ItemSortBy } from '@jellyfin/sdk/lib/generated-client/models/item-sort-by';
|
||||
|
||||
import 'elements/emby-itemscontainer/emby-itemscontainer';
|
||||
import 'elements/emby-scroller/emby-scroller';
|
||||
|
@ -133,7 +134,7 @@ function getFetchDataFn(section) {
|
|||
return function () {
|
||||
const apiClient = this.apiClient;
|
||||
const options = {
|
||||
SortBy: 'SeriesSortName,SortName',
|
||||
SortBy: [ItemSortBy.SeriesSortName, ItemSortBy.SortName].join(','),
|
||||
SortOrder: 'Ascending',
|
||||
Filters: 'IsFavorite',
|
||||
Recursive: true,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue