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?