From 415a915400e4f3fa2c5ff9cd6945b3fb631a5f44 Mon Sep 17 00:00:00 2001
From: pnogal <paulina.nogal@wisc.edu>
Date: Thu, 14 Feb 2019 10:37:14 -0600
Subject: [PATCH] Add snack-bar message after renaming plan

---
 src/app/degree-planner/store/effects/plan.effects.ts | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/app/degree-planner/store/effects/plan.effects.ts b/src/app/degree-planner/store/effects/plan.effects.ts
index 26eb7f3..dfac9eb 100644
--- a/src/app/degree-planner/store/effects/plan.effects.ts
+++ b/src/app/degree-planner/store/effects/plan.effects.ts
@@ -187,6 +187,10 @@ export class DegreePlanEffects {
           map(() => {
             return new ChangePlanNameSuccess({ roadmapId, newName });
           }),
+          tap(() => {
+            const message = `Plan name has been changed to ${newName}`;
+            this.snackBar.open(message, undefined, {duration: 2000});
+          }),
           catchError(() => {
             return of(new ChangePlanNameFailure({ roadmapId, oldName }));
           }),
-- 
GitLab