anthonyisensee / incidenttracker

Track the time since the last incident in a system. 🧨 Also view the time and details of past incidents. ⏱️
https://incidenttracker.anthonyisensee.com
0 stars 1 forks source link

Use Bulma modals instead of JavaScript prompts and confirms #4

Closed anthonyisensee closed 2 months ago

anthonyisensee commented 3 months ago

Figure out how to implement Bulma modals instead of using JavaScript prompts and confirms. In the case of confirm, I'd like to use Bulma form fields.

anthonyisensee commented 3 months ago

@Geo-Bold, please make the modals in place replacements for javascript prompt and confirm. I'd also love modals to be easily reusable, with only one ever rendering to the page to avoid modal stacking (multiple Bulma modals being rendered in over each other).

It would be great to see the same or similar parameter structure to prompt() and confirm() in the functions you create. Since Bulma modals have a header and a footer with confirmation buttons, I'd love to see options in the function parameters to set the message of the modal, the title in the modal header, and the labels of the okay and cancel buttons. If values are not set, I'd love to see sensible default parameter values. Let me know if you have further questions!