From 490f391a140a6be96eed755b63122c391d7af6e2 Mon Sep 17 00:00:00 2001 From: ABNER SILVA DE OLIVEIRA Date: Wed, 25 May 2016 14:45:13 -0300 Subject: [PATCH] changed to not catch errors on delete. let the restangular interceptor handle the error --- src/app/article/article-default-view.component.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/app/article/article-default-view.component.ts b/src/app/article/article-default-view.component.ts index e5993f0..0c6b1a7 100644 --- a/src/app/article/article-default-view.component.ts +++ b/src/app/article/article-default-view.component.ts @@ -35,10 +35,7 @@ export class ArticleDefaultViewComponent { } delete() { - this.articleService.remove(this.article).catch((cause: any) => { - // TODO - Montar mensagem de erro com a causa - this.notificationService.error({ message: "article.default_view.remove.failed"}); - }); + this.articleService.remove(this.article); } } -- libgit2 0.21.2