Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

Restore webhooks js asset

Oliver Güntherf767e11a28c9
diff --git a/modules/webhooks/lib/open_project/webhooks/engine.rb b/modules/webhooks/lib/open_project/webhooks/engine.rb
index f859c009cc6..8e16c8c231a 100644
--- a/modules/webhooks/lib/open_project/webhooks/engine.rb
+++ b/modules/webhooks/lib/open_project/webhooks/engine.rb
@@ -54,5 +54,9 @@ module OpenProject::Webhooks
initializer 'webhooks.subscribe_to_notifications' do
::OpenProject::Webhooks::EventResources.subscribe!
end
+
+ initializer 'webhooks.precompile_assets' do |app|
+ app.config.assets.precompile += %w(webhooks/webhooks.js)
+ end
end
end