mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 01:32:23 +08:00
f9bdda84ca
1. The events table had broken styling, making each row overflow 2. It had confusing routes: `/:id` for "edit" and `/:id/events` for "show" (now it's `/:id/edit` and `/:id` respectively) 3. There previously was an unused backend action (`#edit`) - now it is used (and `web_hooks/:id/events` route has been removed) 4. There was outdated/misplaced/duplicated CSS 5. And more
18 lines
441 B
JavaScript
18 lines
441 B
JavaScript
import Route from "@ember/routing/route";
|
|
|
|
export default Route.extend({
|
|
model() {
|
|
return this.store.findAll("web-hook");
|
|
},
|
|
|
|
setupController(controller, model) {
|
|
controller.setProperties({
|
|
model,
|
|
eventTypes: model.extras.event_types,
|
|
defaultEventTypes: model.extras.default_event_types,
|
|
contentTypes: model.extras.content_types,
|
|
deliveryStatuses: model.extras.delivery_statuses,
|
|
});
|
|
},
|
|
});
|