Wrap webhook event label with `samp` tag (#32115)

pull/31859/merge
Matt Jankowski 2024-09-27 04:20:21 -04:00 committed by GitHub
parent 675ec1a0ad
commit 04dd3a9eb6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 1 deletions

View File

@ -13,7 +13,8 @@
as: :check_boxes,
collection_wrapper_tag: 'ul',
item_wrapper_tag: 'li',
disabled: Webhook::EVENTS.filter { |event| !current_user.role.can?(Webhook.permission_for_event(event)) }
disabled: Webhook::EVENTS.filter { |event| !current_user.role.can?(Webhook.permission_for_event(event)) },
label_method: ->(event) { tag.samp(event) }
.fields-group
= form.input :template,