mirror of
https://github.com/flarum/framework.git
synced 2025-05-22 22:59:57 +08:00
Move forum ember app into a subdir, preparing for admin app to exist alongside
This commit is contained in:
22
ember/forum/app/components/composer/composer-reply.js
Normal file
22
ember/forum/app/components/composer/composer-reply.js
Normal file
@ -0,0 +1,22 @@
|
||||
import Ember from 'ember';
|
||||
|
||||
import ComposerBody from 'flarum/components/composer/composer-body';
|
||||
|
||||
var precompileTemplate = Ember.Handlebars.compile;
|
||||
|
||||
/**
|
||||
The composer body for posting a reply. Adds a title control to indicate
|
||||
which discussion is being replied to.
|
||||
*/
|
||||
export default ComposerBody.extend({
|
||||
submitLabel: 'Post Reply',
|
||||
|
||||
populateControls: function(items) {
|
||||
var title = Ember.Component.extend({
|
||||
tagName: 'h3',
|
||||
layout: precompileTemplate('Replying to <em>{{component.discussion.title}}</em>'),
|
||||
component: this
|
||||
});
|
||||
items.pushObjectWithTag(title, 'title');
|
||||
}
|
||||
});
|
Reference in New Issue
Block a user