Commit 490f391a140a6be96eed755b63122c391d7af6e2

Authored by ABNER SILVA DE OLIVEIRA
1 parent 8ba08a19

changed to not catch errors on delete. let the restangular interceptor handle the error

src/app/article/article-default-view.component.ts
@@ -35,10 +35,7 @@ export class ArticleDefaultViewComponent { @@ -35,10 +35,7 @@ export class ArticleDefaultViewComponent {
35 } 35 }
36 36
37 delete() { 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 }