f3oall / awesome-notifications

Lightweight JavaScript Notifications Library
https://f3oall.github.io/awesome-notifications/
MIT License
286 stars 40 forks source link

Notify only with OK button vs Confirm forcing 2 options #17

Closed SeoRoman closed 5 years ago

SeoRoman commented 5 years ago

Is your feature request related to a problem? Please describe. Ability to remove Cancel button for Confirmation so that it works more like an "Alert Notification" vs a Confirm

IE: Confirm = 2 Actions (OK, CANCEL) Notification = 1 Action (OK)

Confirm can be used in both instances, with an option to remove the button cancel

OR...

Replicate AWN.confirm() to AWN.notify() with only a single button action for OK

Describe the solution you'd like Ability to remove the cancel button in a confirm dialog

Describe alternatives you've considered Other packages like sweetalert have the ability to display the dialog but only offer the single option of OK (but I like VueAWN more)

Additional context Don't think I need any

f3oall commented 5 years ago

It's reasonable, I will try to implement requested feature during the week

f3oall commented 5 years ago

Feature was implemented in 3.0.3. Read docs about confirmation window to learn how to use it.