Hey there! I think I need some help
I’m attempting to add a custom webhook, which I’ve been able to get working and it correctly sends the payload to the webhook URL. The only thing I’m unable to accomplish is to be able to enable the event when configuring the webhook in admin. I’ve followed the tutorial above registering the fixture but it’s not appearing in admin.
I’ve tried a couple of ways:
SeedFu.fixture_paths << Rails.root.join("plugins", "<plugin_name>", "db", "fixtures").to_s
register_seedfu_fixtures(Rails.root.join("plugins", "<plugin_name>", "db", "fixtures").to_s)
Fixture:
WebHookEventType.seed do |b|
b.id = 101
b.name = "remove_like"
end
I also added this to locale:
en:
js:
plugin_name:
placeholder: placeholder
admin:
web_hooks:
remove_like_event:
name: "Remove Like Event"
details: "When a user marks a post as the accepted or unaccepted answer."
Am I missing something? or am I supposed to do it in some other way?