Skip to content
Snippets Groups Projects
Commit 0fd00252 authored by Scott Berg's avatar Scott Berg Committed by Scott Berg
Browse files

Reset drag over state on course drop.

parent 51c95424
No related branches found
No related tags found
No related merge requests found
Pipeline #37694 passed
......@@ -51,6 +51,8 @@ export class SavedForLaterContainerComponent implements OnInit {
const fromTerm = previousContainerId.indexOf('term-') === 0;
const fromDifferentContainer = newContainerId !== previousContainerId;
this.hasItemDraggedOver = false;
if (fromDifferentContainer && fromTerm) {
const course = event.item.data as Course;
......
......@@ -225,6 +225,8 @@ export class TermContainerComponent implements OnInit, OnDestroy {
course => course.courseId === courseId,
);
this.hasItemDraggedOver = false;
if (newContainer !== previousContainer && isCourseInPlannedCourses) {
this.dialog
.open(ConfirmDialogComponent, {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment