Commit 490f391a140a6be96eed755b63122c391d7af6e2
1 parent
8ba08a19
Exists in
master
and in
18 other branches
changed to not catch errors on delete. let the restangular interceptor handle the error
Showing
1 changed file
with
1 additions
and
4 deletions
Show diff stats
src/app/article/article-default-view.component.ts
... | ... | @@ -35,10 +35,7 @@ export class ArticleDefaultViewComponent { |
35 | 35 | } |
36 | 36 | |
37 | 37 | delete() { |
38 | - this.articleService.remove(this.article).catch((cause: any) => { | |
39 | - // TODO - Montar mensagem de erro com a causa | |
40 | - this.notificationService.error({ message: "article.default_view.remove.failed"}); | |
41 | - }); | |
38 | + this.articleService.remove(this.article); | |
42 | 39 | } |
43 | 40 | |
44 | 41 | } | ... | ... |