From 0b3f2a5a9e4af1d86132e927c0d1b62d9702377a Mon Sep 17 00:00:00 2001 From: Sujeeth Kolluru Date: Fri, 30 Sep 2016 15:51:59 -0400 Subject: [PATCH] fix(article): add callback for remove article Add callback on remove article for state transition Fixes #1274 --- .../client/controllers/admin/article.client.controller.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/articles/client/controllers/admin/article.client.controller.js b/modules/articles/client/controllers/admin/article.client.controller.js index 2e26a12653..219390dfd3 100644 --- a/modules/articles/client/controllers/admin/article.client.controller.js +++ b/modules/articles/client/controllers/admin/article.client.controller.js @@ -20,7 +20,9 @@ // Remove existing Article function remove() { if ($window.confirm('Are you sure you want to delete?')) { - vm.article.$remove($state.go('admin.articles.list')); + vm.article.$remove(function() { + $state.go('admin.articles.list'); + }); } }