add drag and drop to rest of lists

This commit is contained in:
Joel Wetzell
2026-05-17 22:12:21 -05:00
parent a433b0e036
commit 0d09bd534a
11 changed files with 448 additions and 69 deletions
@@ -9,9 +9,14 @@
</div>
<div class="text-white">Routes</div>
</div>
<div class="grow overflow-x-hidden overflow-y-auto gap-1.5">
@for (route of routes(); track $index; let i = $index) {
<div class="m-2">
<div
class="grow overflow-x-hidden overflow-y-auto gap-1.5"
cdkDropList
(cdkDropListDropped)="drop($event)"
[cdkDropListData]="routes()"
>
@for (route of routes(); track route; let i = $index) {
<div class="m-2" cdkDrag>
<app-route
[path]="`routes/${i}`"
(updated)="routeUpdated(i, $event)"
@@ -19,6 +24,7 @@
[moduleIds]="moduleIds() || []"
(delete)="deleteRoute(i)"
(moveProcessor)="moveProcessorBetweenRoutes($event)"
[inDragList]="true"
></app-route>
</div>
}