fix: publish all mealplan create, update, and delete events (#7015)

Co-authored-by: Michael Genson <genson.michael@gmail.com>
Co-authored-by: Michael Genson <71845777+michael-genson@users.noreply.github.com>
This commit is contained in:
francisferrell
2026-03-26 15:52:55 -04:00
committed by GitHub
parent 910ac4c81f
commit e52a887e30
8 changed files with 135 additions and 8 deletions

View File

@@ -58,6 +58,8 @@ export interface GroupEventNotifierOptions {
dataExport?: boolean;
dataImport?: boolean;
mealplanEntryCreated?: boolean;
mealplanEntryUpdated?: boolean;
mealplanEntryDeleted?: boolean;
shoppingListCreated?: boolean;
shoppingListUpdated?: boolean;
shoppingListDeleted?: boolean;
@@ -85,6 +87,8 @@ export interface GroupEventNotifierOptionsOut {
dataExport?: boolean;
dataImport?: boolean;
mealplanEntryCreated?: boolean;
mealplanEntryUpdated?: boolean;
mealplanEntryDeleted?: boolean;
shoppingListCreated?: boolean;
shoppingListUpdated?: boolean;
shoppingListDeleted?: boolean;
@@ -113,6 +117,8 @@ export interface GroupEventNotifierOptionsSave {
dataExport?: boolean;
dataImport?: boolean;
mealplanEntryCreated?: boolean;
mealplanEntryUpdated?: boolean;
mealplanEntryDeleted?: boolean;
shoppingListCreated?: boolean;
shoppingListUpdated?: boolean;
shoppingListDeleted?: boolean;

View File

@@ -293,9 +293,17 @@ const optionsSections: OptionSection[] = [
text: i18n.t("events.mealplan-events"),
options: [
{
text: i18n.t("events.when-a-user-in-your-group-creates-a-new-mealplan"),
text: i18n.t("general.create") as string,
key: "mealplanEntryCreated",
},
{
text: i18n.t("general.update") as string,
key: "mealplanEntryUpdated",
},
{
text: i18n.t("general.delete") as string,
key: "mealplanEntryDeleted",
},
],
},
{