SplitSession auch für Rahmenprogramme #36
|
|
@ -928,27 +928,6 @@ export default function TrainingUnitSectionsEditor({
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
let crossesParallelWholePlanBoundary = false
|
|
||||||
if (
|
|
||||||
enableParallelPhaseControls &&
|
|
||||||
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
|
|
||||||
}
|
|
||||||
|
|
||||||
if (
|
if (
|
||||||
typeof onMoveSectionsAcrossSlots === 'function' &&
|
typeof onMoveSectionsAcrossSlots === 'function' &&
|
||||||
sectionToSlot >= 0 &&
|
sectionToSlot >= 0 &&
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user