mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-20 14:39:06 +00:00
fix: allow moving a group after another
This commit is contained in:
committed by
Carlos Valente
parent
578cb2b244
commit
8d3ce46c56
@@ -41,9 +41,9 @@ export function canDrop(
|
|||||||
order?: 'after' | 'before',
|
order?: 'after' | 'before',
|
||||||
isTargetCollapsed?: boolean,
|
isTargetCollapsed?: boolean,
|
||||||
): boolean {
|
): boolean {
|
||||||
// this would mean inserting a group inside another
|
// inserting before would mean adding a group inside another
|
||||||
if (targetType === 'end-group') {
|
if (targetType === 'end-group') {
|
||||||
return false;
|
return order === 'after';
|
||||||
}
|
}
|
||||||
|
|
||||||
// this means swapping places with another group
|
// this means swapping places with another group
|
||||||
|
|||||||
Reference in New Issue
Block a user