How to freeze the dashboard when the app is running?

Hello community,

I would like to know if there is a possibiity to freeze the dashboard to prevent to user from triggering another run when the Streamlit app is already running. And unfreeze the dashbard if the app is ready

Any idea?

Thanks.