shopping supermarket quick edit

This commit is contained in:
vabene1111
2024-12-01 14:27:08 +01:00
parent fa8cd4a2f0
commit 4149549c88
37 changed files with 116 additions and 41 deletions

View File

@@ -229,8 +229,10 @@ export const useShoppingStore = defineStore(_STORE_ID, () => {
if (undo) {
registerChange("CREATE", [r])
}
return r
}).catch((err) => {
useMessageStore().addError(ErrorMessageType.CREATE_ERROR, err)
return undefined
})
}

View File

@@ -14,9 +14,9 @@ class DeviceSettings {
shopping_show_delayed_entries = false
shopping_show_selected_supermarket_only = false
shopping_selected_grouping = ShoppingGroupingOptions.CATEGORY
shopping_selected_supermarket: Supermarket = {} as Supermarket
shopping_selected_supermarket: Supermarket|null = null
shopping_item_info_created_by = false
shopping_item_info_mealplan = false
shopping_item_info_mealplan = true
shopping_item_info_recipe = true
shopping_show_debug = false