Added getSortOptions to userSettings.js and cleaned up the shortcuts.js and list.js to use the above method
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user