Skip to content
Snippets Groups Projects
Commit 415a9154 authored by pnogal's avatar pnogal
Browse files

Add snack-bar message after renaming plan

parent a50e4f2f
No related branches found
No related tags found
No related merge requests found
......@@ -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 }));
}),
......
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