SplitSession auch für Rahmenprogramme #36

Merged
Lars merged 11 commits from develop into main 2026-05-16 09:02:51 +02:00
Showing only changes of commit 0fdee610ed - Show all commits

View File

@ -928,9 +928,23 @@ export default function TrainingUnitSectionsEditor({
} }
} }
let crossesParallelWholePlanBoundary = false
if ( if (
enableParallelPhaseControls && enableParallelPhaseControls &&
(insertBeforeIdx === fromSi || insertBeforeIdx === fromSi + 1) insertBeforeIdx >= 0 &&
insertBeforeIdx < list.length
) {
const fromK = list[fromSi]?.planLoc?.phaseKind
const toK = list[insertBeforeIdx]?.planLoc?.phaseKind
crossesParallelWholePlanBoundary =
(fromK === 'parallel' && toK === 'whole_group') ||
(fromK === 'whole_group' && toK === 'parallel')
}
if (
enableParallelPhaseControls &&
(insertBeforeIdx === fromSi || insertBeforeIdx === fromSi + 1) &&
!crossesParallelWholePlanBoundary
) { ) {
return return
} }