1
0
Fork 0
mirror of https://github.com/mealie-recipes/mealie.git synced 2025-07-24 15:49:42 +02:00

refator: reuse search page component (#2240)

* wip: fix recipe card section

* refactor basic search to share composable

* fix dialog results

* use search for cat/tag/tool pages

* update organizer to support name edits

* fix composable typing
This commit is contained in:
Hayden 2023-03-12 12:59:28 -08:00 committed by GitHub
parent b06517fdf4
commit 9650ba9b00
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
14 changed files with 205 additions and 538 deletions

View file

@ -7,7 +7,13 @@ export interface ContextMenuItem {
color?: string;
}
export function useContextPresets(): { [key: string]: ContextMenuItem } {
export interface ContextMenuPresets {
delete: ContextMenuItem;
edit: ContextMenuItem;
save: ContextMenuItem;
}
export function useContextPresets(): ContextMenuPresets {
const { $globals, i18n } = useContext();
return {