1
0
mirror of https://github.com/flarum/core.git synced 2025-10-12 15:34:26 +02:00

Always show composer header. closes flarum/core#112

This commit is contained in:
Toby Zerner
2015-06-26 12:18:13 +09:30
parent 8f6b373ea1
commit 0526e223e4
3 changed files with 8 additions and 13 deletions

View File

@@ -25,12 +25,10 @@ export default class ComposerBody extends Component {
view(className) {
this.editor.props.disabled = this.loading() || !this.ready();
var headerItems = this.headerItems().toArray();
return m('div', {className, config: this.onload.bind(this)}, [
avatar(this.props.user, {className: 'composer-avatar'}),
m('div.composer-body', [
headerItems.length ? m('ul.composer-header', listItems(headerItems)) : '',
m('ul.composer-header', listItems(this.headerItems().toArray())),
m('div.composer-editor', this.editor.view())
]),
LoadingIndicator.component({className: 'composer-loading'+(this.loading() ? ' active' : '')})