mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 22:43:33 +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 { and, not } from "@ember/object/computed";
|
||||
import { inject } from "@ember/controller";
|
||||
import Controller from "@ember/controller";
|
||||
import ModalFunctionality from "discourse/mixins/modal-functionality";
|
||||
@ -64,8 +65,8 @@ export default Controller.extend(ModalFunctionality, {
|
||||
this.set("fileSelected", false);
|
||||
},
|
||||
|
||||
enabled: Ember.computed.and("nameValid", "fileSelected"),
|
||||
disabled: Ember.computed.not("enabled"),
|
||||
enabled: and("nameValid", "fileSelected"),
|
||||
disabled: not("enabled"),
|
||||
|
||||
@computed("name", "adminCustomizeThemesShow.model.theme_fields")
|
||||
errorMessage(name, themeFields) {
|
||||
|
Reference in New Issue
Block a user