Skip to content

Commit 1df6b27

Browse files
authored
Merge pull request #966 from amatsuda/public_comment_confirmation
Make sure we're posting a public comment
2 parents baf34e5 + ed89085 commit 1df6b27

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/views/proposals/_comments.html.haml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,6 @@
1818
- else
1919
= f.text_area :body, class: 'form-control', placeholder: 'Add your comment', rows: 5
2020
.form-group
21-
%button.btn.btn-success.save-comment(type="submit")
21+
%button.btn.btn-success.save-comment{type: 'submit', data: {turbo_confirm: internal?(f.object) ? nil : 'Are you sure you want to post a Public comment?'}}
2222
%span.bi.bi-check
2323
Comment

0 commit comments

Comments
 (0)