mirror of
https://git.kescher.at/CatCatNya/catstodon.git
synced 2024-11-22 11:48:06 +01:00
Wrap webhook event label with samp
tag (#32115)
This commit is contained in:
parent
675ec1a0ad
commit
04dd3a9eb6
1 changed files with 2 additions and 1 deletions
|
@ -13,7 +13,8 @@
|
||||||
as: :check_boxes,
|
as: :check_boxes,
|
||||||
collection_wrapper_tag: 'ul',
|
collection_wrapper_tag: 'ul',
|
||||||
item_wrapper_tag: 'li',
|
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
|
.fields-group
|
||||||
= form.input :template,
|
= form.input :template,
|
||||||
|
|
Loading…
Reference in a new issue