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

Commit

Permalink
fix(article): add callback for remove article (#1534)
Browse files Browse the repository at this point in the history
Add callback on remove article for state transition

Fixes #1274
  • Loading branch information
sujeethk authored and mleanos committed Sep 30, 2016
1 parent e3eafa6 commit a7aebbd
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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');
});
}
}

Expand Down

0 comments on commit a7aebbd

Please sign in to comment.