mirror of
https://github.com/discourse/discourse.git
synced 2025-05-30 15:28:37 +08:00
Revert "REFACTOR: support booting discourse with DISCOURSE_NO_CONSTANTS"
This reverts commit c0b277d273536f6aab1df67d908ed5e306868b2a.
This commit is contained in:
@ -3,19 +3,17 @@
|
||||
export default Ember.Mixin.create({
|
||||
|
||||
openComposer(controller) {
|
||||
const Composer = require('discourse/models/composer').default;
|
||||
this.controllerFor('composer').open({
|
||||
categoryId: controller.get('category.id'),
|
||||
action: Composer.CREATE_TOPIC,
|
||||
action: Discourse.Composer.CREATE_TOPIC,
|
||||
draftKey: controller.get('model.draft_key'),
|
||||
draftSequence: controller.get('model.draft_sequence')
|
||||
});
|
||||
},
|
||||
|
||||
openComposerWithParams(controller, topicTitle, topicBody, topicCategoryId, topicCategory) {
|
||||
const Composer = require('discourse/models/composer').default;
|
||||
this.controllerFor('composer').open({
|
||||
action: Composer.CREATE_TOPIC,
|
||||
action: Discourse.Composer.CREATE_TOPIC,
|
||||
topicTitle,
|
||||
topicBody,
|
||||
topicCategoryId,
|
||||
|
Reference in New Issue
Block a user