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:
parent
b06517fdf4
commit
9650ba9b00
14 changed files with 205 additions and 538 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue