pdmfc/nova-action-button

Add option to reload page after running an action

Opened this issue · 6 comments

Hi, could you add the option to reload the page after running an action? Right now after if I run an action which updates the model I won't see any changes before I manually reload the page.
Standard way of running Nova actions reloads the page after its completion.

Hi @przper! Thanks for your feedback.

It seems that I cannot replicate the problem. I did a test on the index page of the resource, and found no issues whatsoever.

Could you give me some more details of your use-case?

test

Hi,

I am also facing the same issue. Hi @przper, were you able to fix it somehow

Hi @ssanjeev can you give me more information on whats your current Nova version and how are you using the button in your code?

I was using it on detail page, not on index page.
I created few actions for the resource, and created separate panel where I put a button for all actions using your package. When I click the button to run the action, page was not reloaded. After manual refreshing I could see that the action run succesfully.

Thanks @przper I think the issue is when it is on a different panel.

I will try to take a look at it.

Meanwhile, could you confirm, if you do not put it on a different panel that it does work?

I can indeed confirm that running same action without wrapping it in a panel results in details page being reloaded and likewise when inside panel no refresh is made.