Commit 347a72e45ed271ca77fed3dd67b74ad5caebadd0
1 parent
67ad6325
Exists in
master
and in
30 other branches
Fix the use of notification service when create an article
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
src/app/article/basic-editor.component.ts
@@ -28,7 +28,7 @@ export class BasicEditorComponent { | @@ -28,7 +28,7 @@ export class BasicEditorComponent { | ||
28 | }).then((response: noosfero.RestResult<noosfero.Article>) => { | 28 | }).then((response: noosfero.RestResult<noosfero.Article>) => { |
29 | let article = (<noosfero.Article>response.data); | 29 | let article = (<noosfero.Article>response.data); |
30 | this.$state.transitionTo('main.profile.page', { page: article.path, profile: article.profile.identifier }); | 30 | this.$state.transitionTo('main.profile.page', { page: article.path, profile: article.profile.identifier }); |
31 | - this.notification.success("Good job!", "Article saved!"); | 31 | + this.notification.success({ title: "Good job!", message: "Article saved!" }); |
32 | }); | 32 | }); |
33 | } | 33 | } |
34 | 34 |