Skip to content
This repository was archived by the owner on Aug 30, 2021. It is now read-only.

Commit a7aebbd

Browse files
sujeethkmleanos
authored andcommitted
fix(article): add callback for remove article (#1534)
Add callback on remove article for state transition Fixes #1274
1 parent e3eafa6 commit a7aebbd

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

modules/articles/client/controllers/admin/article.client.controller.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@
2020
// Remove existing Article
2121
function remove() {
2222
if ($window.confirm('Are you sure you want to delete?')) {
23-
vm.article.$remove($state.go('admin.articles.list'));
23+
vm.article.$remove(function() {
24+
$state.go('admin.articles.list');
25+
});
2426
}
2527
}
2628

0 commit comments

Comments
 (0)