You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
button should have a confirm property to trigger confirm dialog #831
The button component creates a clickable button that triggers an action. This action can be destructive, such as deleting or altering a record.
It would be beneficial to have a confirmation dialog appear when the button is clicked. If the user clicks "Confirm," the action will be performed; otherwise, the confirmation dialog will close, and the user will remain on the current page.
This feature would help prevent accidental deletions.
What are you currently doing ?
Living in fear :)
Describe the solution you'd like
Have additional optional properties for the component:
"confirm" a bolean ; enable confirm dialog when set to true ; default to false (for backward compatibility)
"confirm_text" a text ; message displayed in the confirmation dialog; defaults to "are you sure you want to proceed ?"
select'button'as component
;
select'/delete_item.sql?id='|| id as link
, 'trash'as icon
, 'danger'as color
, 'Delete'as title
, true as confirm
, 'You are about to delete item "'|| title ||'". please confirm'as confirm_text
;
We could do even better than an alert, and use tabler's confirmation modals. I'm all for it ! Are you interested in implementing this, @setop ? Can you open a pull request ?
Activity
lovasoa commentedon Feb 27, 2025
We could do even better than an
alert, and use tabler's confirmation modals. I'm all for it ! Are you interested in implementing this, @setop ? Can you open a pull request ?setop commentedon Feb 27, 2025
I think I'll start with #821 which is probably simpler for a start.
81reap commentedon Oct 31, 2026
I think this is still and issue
On commit 2d45bd4:
nix run .#reproduce -- repro_831 sqlite v0.33.0 v0.47.0 treelovasoa commentedon Oct 31, 2026
see my comment there: #1587 (comment)
I don't think buttons should have a confirmation property, it should be the target page that has it.