How to disable button when clicked button to action window location and enable it again after window location finished

Viewed 23

there's action button click, if button click on then call api to return file (export to excel) use window.location, i need to disable it in process export and loading window location, after that i need to enable it again after window location finished. there's way to enable it again if process successfully?

0 Answers
Related