-
Notifications
You must be signed in to change notification settings - Fork 2k
Remove in Article -> Add callback #1274
Comments
@marianoqueirel there should actually be error handling as well. Can you make a PR so we can fix this code a bit? |
There is a typo here: $state.go('articles.list')); This patch actually fixes a bug in 0.5 where the list sometimes still displays the deleted record after deletion. I have not observed the bug in 0.4.2. |
@marianoqueirel can you make a PR with your code with @jamviking's typo fix? |
sure! @ilanbiala, I'm going to do, and Make my first PR. |
I'm also experiencing this issue. I deal with images associated with the article. The 'news.list' was called even if the remove function has not finished executing (1 out 5 images has been deleted the moment 'news.list' was called). Thanks @marianoqueirel for the solution. |
@xiandalisay , @marianoqueirel will you open a PR please to fix this? |
@ilanbiala @xiandalisay @marianoqueirel one of you would like to open a PR for this fix? |
@lirantal Sure, I'll take a look at it sometime in the next few days. |
Add callback on remove article for state transition Fixes #1274
I think it would be better to do as follow:
In Order to do so with a callback, and so it en the next digest.
The text was updated successfully, but these errors were encountered: