mirror of
https://github.com/discourse/discourse.git
synced 2024-12-20 13:23:42 +08:00
c468110929
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
18 lines
478 B
JavaScript
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,
|
|
});
|
|
}
|
|
}
|