the-via / app

GNU General Public License v3.0
736 stars 168 forks source link

Addition of confirmation dialog for button events #212

Open Cipulot opened 7 months ago

Cipulot commented 7 months ago

This commit aims to provide a confirmation dialog in the browser when clicking on a button in Custom UI This helps in cases the button is bound to some actions at the keyboard level that might cause data losses or resets.

The addition of the dialog box prevents the execution of the functions unless a confirmation is given. The action name shown in the dialog text is dynamic and takes the name associated with the button.

Here's an example:

Screenshot 2023-12-06 at 1 19 21 AM