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

Added getSortOptions to userSettings.js and cleaned up the shortcuts.js and list.js to use the above method

This commit is contained in:
MrK 2023-09-19 22:29:54 +01:00
parent f922742d86
commit 580ad5f1a8
3 changed files with 18 additions and 16 deletions

View file

@ -962,10 +962,7 @@ class ItemsView {
getSortValues() {
const basekey = this.getSettingsKey();
return {
sortBy: userSettings.getFilter(basekey + '-sortby') || this.getDefaultSortBy(),
sortOrder: userSettings.getFilter(basekey + '-sortorder') === 'Descending' ? 'Descending' : 'Ascending'
};
return userSettings.getSortValues(basekey);
}
getDefaultSortBy() {