ROENROLL-1765 fix double click on course item opening 2 detail modals
Bug was caused because the course details modal didn't open until the course details API call had resolved. If the user double clicked on the course item, two clicks were registered before the first modal had opened which trigged a second modal to open. Now the course details modal always opens immediately (thus preventing subsequent clicks from targeting the course item element) and the details modal is open while it waits for the details API to resolve.
Showing
- src/app/app.component.ts 0 additions, 15 deletionssrc/app/app.component.ts
- src/app/core/models/course-details.ts 70 additions, 71 deletionssrc/app/core/models/course-details.ts
- src/app/degree-planner/dialogs/course-details-dialog/course-details-dialog.component.html 22 additions, 0 deletions...ourse-details-dialog/course-details-dialog.component.html
- src/app/degree-planner/dialogs/course-details-dialog/course-details-dialog.component.ts 27 additions, 26 deletions.../course-details-dialog/course-details-dialog.component.ts
- src/app/degree-planner/services/api.service.ts 2 additions, 2 deletionssrc/app/degree-planner/services/api.service.ts
- src/app/degree-planner/shared/course-item/course-item.component.ts 7 additions, 11 deletions...egree-planner/shared/course-item/course-item.component.ts
- src/app/shared/components/course-details/course-details.component.ts 2 additions, 6 deletions...red/components/course-details/course-details.component.ts
Loading
Please register or sign in to comment