]> gitweb.hhaalo.de Git - speisekarten-editor.git/commitdiff
change: rename drop method
authorBastian Dehn <hhaalo@arcor.de>
Sat, 2 Jul 2022 07:39:23 +0000 (09:39 +0200)
committerBastian Dehn <hhaalo@arcor.de>
Sat, 2 Jul 2022 07:39:23 +0000 (09:39 +0200)
src/app/subtitle/subtitle.component.html
src/app/subtitle/subtitle.component.ts

index 5a84a239edbeaf9abe3f813315d50f2ce97e8ed8..db1570054c3ba1179f6b0963f067206a9d675fb6 100644 (file)
@@ -1,6 +1,6 @@
 <div cdkDropList
      [cdkDropListData]="subtitle.Foods"
-     (cdkDropListDropped)="reorderList($event)"
+     (cdkDropListDropped)="onDrop($event)"
        class="subtitle"
        [class.active]="formSubtitleVisible">
        <h2>{{subtitle.Subtitle}}</h2>
index 6a528db9e61bb9ce2cd193d92d970aa86ffb0c4f..c783d5223ac0d68c7c11d196fde271c6c0127283 100644 (file)
@@ -57,7 +57,7 @@ export class SubtitleComponent implements OnInit
                this.subtitle.Foods.splice(index, 1);
        }
 
-       public reorderList(event: CdkDragDrop<IFood[]>)
+       public onDrop(event: CdkDragDrop<IFood[]>)
        {
                if (event.previousContainer === event.container) {
                        moveItemInArray(event.container.data,