I’m trying to make a logout process where the user should confirm to proceed logging out. Here’s how I want to do it:
From a menu item button, a blank application shall be called. A dialog or message alert should appear at the center of the screen or browser and make the other parts of the screen blurry or inaccessible. Inside the message alert, there’s the logout confirmation question, “Are you sure to logout?” and two buttons, Confirm or Cancel. If cancel is pressed, the user will not logout and the entire screen should be accessible again as if nothing happened. While if logout is confirmed, login app is called.
How can I do this using sweet alert? or is there another way to do it?