Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Separate btw "confirmDelete"'s confirm button and the "alert"'s confirm button #161

Closed
mohamedds-12 opened this issue Jul 6, 2023 · 2 comments

Comments

@mohamedds-12
Copy link
Contributor

In the package config there's only one config key SWEET_ALERT_CONFIRM_BUTTON=true that determines whether to show the confirm button on alerts or not. But after adding the confirmDelete feature the confirm button of the "confirmDelete" alert must be shown although I don't want it to be shown on normal alerts. and that's not possible cuz only one key determines whether it must be shown in all alerts or not.

@realrashid
Copy link
Owner

Hey @mohamedds-12 ,

In the new release when you use confirmDelete() its automatically show the confirm button rather you have SWEET_ALERT_CONFIRM_BUTTON=false or SWEET_ALERT_CONFIRM_BUTTON=true

@mohamedds-12
Copy link
Contributor Author

@realrashid,
Well that's what I expected, but when I set the env key SWEET_ALERT_CONFIRM_BUTTON to false the confirm button "Yes, delete it" disappears.
Package version :
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants