From f3a668274416460b60bf701548acb2f4fe5a97f9 Mon Sep 17 00:00:00 2001 From: Charles Ewert Date: Tue, 26 Nov 2024 23:58:35 -0500 Subject: [PATCH] Add sort options to BoxSet libraries - match web client --- components/ItemGrid/ItemGrid.bs | 12 +++++++++--- locale/en_US/translations.ts | 4 ++++ 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/components/ItemGrid/ItemGrid.bs b/components/ItemGrid/ItemGrid.bs index 8aba4e330..5e629ea80 100644 --- a/components/ItemGrid/ItemGrid.bs +++ b/components/ItemGrid/ItemGrid.bs @@ -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" }, diff --git a/locale/en_US/translations.ts b/locale/en_US/translations.ts index fc54b2eab..55dfee916 100644 --- a/locale/en_US/translations.ts +++ b/locale/en_US/translations.ts @@ -1401,5 +1401,9 @@ CH Abbreviation for Channel + + Folders + Folders + \ No newline at end of file