Skip to content

Commit

Permalink
Add sort options to BoxSet libraries - match web client
Browse files Browse the repository at this point in the history
  • Loading branch information
cewert committed Nov 27, 2024
1 parent eaf2e11 commit f3a6682
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
12 changes: 9 additions & 3 deletions components/ItemGrid/ItemGrid.bs
Original file line number Diff line number Diff line change
Expand Up @@ -277,10 +277,16 @@ sub setBoxsetsOptions(options)
options.views = [{ "Title": tr("Shows"), "Name": "shows" }]
options.sort = [
{ "Title": tr("TITLE"), "Name": "SortName" },
{ "Title": tr("DATE_ADDED"), "Name": "DateCreated" },
{ "Title": tr("DATE_PLAYED"), "Name": "DatePlayed" },
{ "Title": tr("RELEASE_DATE"), "Name": "PremiereDate" },
{ "Title": tr("Random"), "Name": "Random" },
{ "Title": tr("IMDB_RATING"), "Name": "CommunityRating,SortName" },
{ "Title": tr("CRITIC_RATING"), "Name": "CriticRating,SortName" },
{ "Title": tr("DATE_ADDED"), "Name": "DateCreated,SortName" },
{ "Title": tr("DATE_PLAYED"), "Name": "DatePlayed,SortName" },
{ "Title": tr("Folders"), "Name": "IsFolder,SortName" },
{ "Title": tr("OFFICIAL_RATING"), "Name": "OfficialRating,SortName" },
{ "Title": tr("PLAY_COUNT"), "Name": "PlayCount,SortName" },
{ "Title": tr("RELEASE_DATE"), "Name": "ProductionYear,PremiereDate,SortName" },
{ "Title": tr("RUNTIME"), "Name": "Runtime,SortName" }
]
options.filter = [
{ "Title": tr("All"), "Name": "All" },
Expand Down
4 changes: 4 additions & 0 deletions locale/en_US/translations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1401,5 +1401,9 @@
<translation>CH</translation>
<extracomment>Abbreviation for Channel</extracomment>
</message>
<message>
<source>Folders</source>
<translation>Folders</translation>
</message>
</context>
</TS>

0 comments on commit f3a6682

Please sign in to comment.