mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-07-24 15:49:42 +02:00
feat: additional recipe sort behavior (#1858)
* changed default sort direction for certain attrs * added workaround for filtering out null datetimes * filtered out null-valued results for certain sorts * removed unecessary parse * used minyear instead of 1900
This commit is contained in:
parent
33dffccaa5
commit
1b9ff454fb
4 changed files with 39 additions and 17 deletions
|
@ -4,6 +4,7 @@ import { useLocalStorage } from "@vueuse/core";
|
|||
export interface UserRecipePreferences {
|
||||
orderBy: string;
|
||||
orderDirection: string;
|
||||
filterNull: boolean;
|
||||
sortIcon: string;
|
||||
useMobileCards: boolean;
|
||||
}
|
||||
|
@ -16,6 +17,7 @@ export function useUserSortPreferences(): Ref<UserRecipePreferences> {
|
|||
{
|
||||
orderBy: "name",
|
||||
orderDirection: "asc",
|
||||
filterNull: false,
|
||||
sortIcon: $globals.icons.sortAlphabeticalAscending,
|
||||
useMobileCards: false,
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue