Use icon instead in composer title when replying to another thread

This commit is contained in:
Toby Zerner 2015-06-01 17:55:05 +09:30
parent 2900cac456
commit 4a1020dfab

View File

@ -3,6 +3,7 @@ import ComposerBody from 'flarum/components/composer-body';
import Alert from 'flarum/components/alert';
import ActionButton from 'flarum/components/action-button';
import Composer from 'flarum/components/composer';
import icon from 'flarum/helpers/icon';
export default class ReplyComposer extends ComposerBody {
constructor(props) {
@ -25,7 +26,7 @@ export default class ReplyComposer extends ComposerBody {
!app.current.discussion ||
app.current.discussion() !== this.props.discussion) {
items.add('title', m('h3', [
'Replying to ',
icon('reply'), ' ',
m('a', {href: app.route.discussion(this.props.discussion), config: m.route}, this.props.discussion.title())
]));
}