Skip to content

Commit 97455da

Browse files
Build an App with Firebase
1 parent 8b02336 commit 97455da

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

01-getting-started-with-angular2/final-project/src/app/shared/model/lessons.service.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,10 @@ export class LessonsService {
7676

7777

7878
requestLessonDeletion(lessonId:string, courseId:string) {
79-
this.dbRef.child('queue/tasks').push(new DeleteLessonRequest(lessonId, courseId));
79+
this.dbRef.child('queue/tasks').push(new DeleteLessonRequest(lessonId, courseId))
80+
.then(
81+
() => alert('lesson deletion requested !')
82+
);
8083
}
8184

8285

0 commit comments

Comments
 (0)