feat: Add specific shift date field for multi-day events with date selector in EventEditor and date badge in ShiftMatrix
This commit is contained in:
@@ -321,11 +321,13 @@ export default function App() {
|
||||
}
|
||||
|
||||
for (let sData of taData.shifts) {
|
||||
const shiftDate = sData.date || eventPayload.start_date;
|
||||
if (sData.id) {
|
||||
await apiFetch(`/shifts/${sData.id}/`, {
|
||||
method: 'PATCH',
|
||||
body: JSON.stringify({
|
||||
title: sData.title,
|
||||
date: shiftDate,
|
||||
start_time: sData.start_time,
|
||||
end_time: sData.end_time,
|
||||
max_participants: sData.max_participants,
|
||||
@@ -338,6 +340,7 @@ export default function App() {
|
||||
body: JSON.stringify({
|
||||
task_area: taId,
|
||||
title: sData.title,
|
||||
date: shiftDate,
|
||||
start_time: sData.start_time,
|
||||
end_time: sData.end_time,
|
||||
max_participants: sData.max_participants,
|
||||
|
||||
Reference in New Issue
Block a user