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:
parent
f922742d86
commit
580ad5f1a8
3 changed files with 18 additions and 16 deletions
|
@ -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() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue