mirror of
https://github.com/hay-kot/mealie.git
synced 2025-08-22 14:33:33 -07:00
remove unused method
This commit is contained in:
parent
eb1c798b70
commit
d9975cf335
1 changed files with 0 additions and 15 deletions
|
@ -764,20 +764,6 @@ export default defineNuxtComponent({
|
|||
{ title: i18n.t("general.delete"), action: contextActions.delete },
|
||||
];
|
||||
|
||||
function contextMenuAction(action: string, item: ShoppingListItemOut, idx: number) {
|
||||
if (!shoppingList.value?.listItems) {
|
||||
return;
|
||||
}
|
||||
|
||||
switch (action) {
|
||||
case contextActions.delete:
|
||||
shoppingList.value.listItems = shoppingList.value?.listItems.filter(itm => itm.id !== item.id);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
// =====================================
|
||||
// Labels, Units, Foods
|
||||
// TODO: Extract to Composable
|
||||
|
@ -1207,7 +1193,6 @@ export default defineNuxtComponent({
|
|||
addRecipeReferenceToList,
|
||||
allLabels,
|
||||
contextMenu,
|
||||
contextMenuAction,
|
||||
copyListItems,
|
||||
createEditorOpen,
|
||||
createListItem,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue