Skip to content
Snippets Groups Projects
Commit ec951429 authored by Paulina Nogal's avatar Paulina Nogal Committed by Isaac Evavold
Browse files

Add snack bar to inform when Plan is being deleted

parent 9336b011
No related branches found
No related tags found
No related merge requests found
......@@ -126,7 +126,7 @@
<p>{{ course.grade || '&nbsp;' }}</p>
</div>
<div fxLayout="row" fxLayoutAlign="end center">
<p
<p *ngIf="type !== 'saved'"
class="course-credits"
cdkFocusRegionEnd
aria-label="Total number of credits in term">
......
......@@ -303,6 +303,10 @@ export class DegreePlanEffects {
const { roadmapId } = action.payload;
return this.api.deleteDegreePlan(roadmapId).pipe(
map(() => new DeletePlanSuccess({ roadmapId })),
tap(() => {
const message = `Deleting selected plan`;
this.snackBar.open(message, undefined, { duration: 10000 });
}),
catchError(error => {
return of(
new PlanError({
......
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