orchidsoftware / platform

Orchid is a @laravel package that allows for rapid application development of back-office applications, admin/user panels, and dashboards.
https://orchid.software
MIT License
4.26k stars 631 forks source link

Annoying message box when data in page changed #2715

Closed aminemeickel closed 9 months ago

aminemeickel commented 9 months ago

Describe the bug I am not sure that this is a bug but i am looking to stop this behavior on some page or remove it completely i am using orchid 14.12.0

To Reproduce Steps to reproduce the behavior:

1.Create a page 1.add Input filed in page 1.change the data in that field and then try to change the page

Expected behavior Remove this behavior completely

Screenshots image

Desktop (please complete the following information):

Server (please complete the following information):

tabuna commented 9 months ago

Hi @aminemeickel! This intentional behavior is called "Prevents Abandonment."

There are two ways to manage this feature:

https://github.com/orchidsoftware/platform/blob/cba008b0bfaa05f6e6dbd3ee3c313f854b96011c/config/platform.php#L295-L306

https://github.com/orchidsoftware/platform/blob/cba008b0bfaa05f6e6dbd3ee3c313f854b96011c/src/Screen/Screen.php#L369-L377

I hope this helps! If you have any more questions, feel free to ask.

aminemeickel commented 9 months ago

Thank you so much for the respond it's super helpful you are the best