diff --git a/pages/api/schedule.ts b/pages/api/schedule.ts index f4d8fda..20909f5 100644 --- a/pages/api/schedule.ts +++ b/pages/api/schedule.ts @@ -192,6 +192,21 @@ export default async function handler(req: NextApiRequest, res: NextApiResponse) shift.notes = "Прибира количка в Склад Сердика -"; // Update the last shift in the last time slot } } + + // if day is thursday, change the note to "Специален текст с линк към снимка" : public/images/cart_EN.jpg - opened in a popup modal + //check if the day is thursday + const dayOfWeek = common.getDayOfWeekNameEnEnumForDate(shift.date); + if (dayOfWeek == "Thursday") { + shift.notes = `Специален текст с линк към снимка +
`; + } } } diff --git a/public/images/cart_EN.jpg b/public/images/cart_EN.jpg new file mode 100644 index 0000000..1519076 Binary files /dev/null and b/public/images/cart_EN.jpg differ diff --git a/src/templates/schedule.hbs b/src/templates/schedule.hbs index 5f95f05..243e9bb 100644 --- a/src/templates/schedule.hbs +++ b/src/templates/schedule.hbs @@ -160,7 +160,7 @@