mirror of
https://github.com/discourse/discourse.git
synced 2025-05-24 23:24:10 +08:00
DEV: Import every instance of Ember.computed function (#8267)
* DEV: Import every instance of Ember.computed function * export default for Ember.computed
This commit is contained in:

committed by
GitHub

parent
790a7e2095
commit
2ae21e9c35
@ -1,3 +1,4 @@
|
||||
import { alias } from "@ember/object/computed";
|
||||
import { inject } from "@ember/controller";
|
||||
import Controller from "@ember/controller";
|
||||
import { popupAjaxError } from "discourse/lib/ajax-error";
|
||||
@ -7,9 +8,9 @@ import InputValidation from "discourse/models/input-validation";
|
||||
|
||||
export default Controller.extend({
|
||||
adminWebHooks: inject(),
|
||||
eventTypes: Ember.computed.alias("adminWebHooks.eventTypes"),
|
||||
defaultEventTypes: Ember.computed.alias("adminWebHooks.defaultEventTypes"),
|
||||
contentTypes: Ember.computed.alias("adminWebHooks.contentTypes"),
|
||||
eventTypes: alias("adminWebHooks.eventTypes"),
|
||||
defaultEventTypes: alias("adminWebHooks.defaultEventTypes"),
|
||||
contentTypes: alias("adminWebHooks.contentTypes"),
|
||||
|
||||
@computed
|
||||
showTagsFilter() {
|
||||
|
Reference in New Issue
Block a user