mirror of
https://github.com/flarum/core.git
synced 2025-10-12 07:24:27 +02:00
Always show composer header. closes flarum/core#112
This commit is contained in:
@@ -21,15 +21,10 @@ export default class ReplyComposer extends ComposerBody {
|
||||
headerItems() {
|
||||
var items = new ItemList();
|
||||
|
||||
if (app.composer.position() === Composer.PositionEnum.MINIMIZED ||
|
||||
// https://github.com/babel/babel/issues/1150
|
||||
!app.current.discussion ||
|
||||
app.current.discussion() !== this.props.discussion) {
|
||||
items.add('title', m('h3', [
|
||||
icon('reply'), ' ',
|
||||
m('a', {href: app.route.discussion(this.props.discussion), config: m.route}, this.props.discussion.title())
|
||||
]));
|
||||
}
|
||||
items.add('title', m('h3', [
|
||||
icon('reply'), ' ',
|
||||
m('a', {href: app.route.discussion(this.props.discussion), config: m.route}, this.props.discussion.title())
|
||||
]));
|
||||
|
||||
return items;
|
||||
}
|
||||
|
Reference in New Issue
Block a user