discourse/app/assets/javascripts/admin/addon/routes/admin-web-hooks.js
Krzysztof Kotlarek c468110929
FEATURE: granular webhooks (#23070)
Before this change, webhooks could be only configured for specific groups like for example, all topic events.

We would like to have more granular control like for example topic_created or topic_destroyed.

Test are failing because plugins changed has to be merged as well:
discourse/discourse-assign#498
discourse/discourse-solved#248
discourse/discourse-topic-voting#159
2023-10-09 03:35:31 +00:00

18 lines
478 B
JavaScript

import Route from "@ember/routing/route";
export default class AdminWebHooksRoute extends Route {
model() {
return this.store.findAll("web-hook");
}
setupController(controller, model) {
controller.setProperties({
model,
groupedEventTypes: model.extras.grouped_event_types,
defaultEventTypes: model.extras.default_event_types,
contentTypes: model.extras.content_types,
deliveryStatuses: model.extras.delivery_statuses,
});
}
}