mirror of
https://github.com/flarum/framework.git
synced 2024-12-12 06:03:39 +08:00
Add icon to post edit composer
This commit is contained in:
parent
c3c2978fc1
commit
0a0c50e1bb
|
@ -2,6 +2,7 @@ import ItemList from 'flarum/utils/item-list';
|
||||||
import ComposerBody from 'flarum/components/composer-body';
|
import ComposerBody from 'flarum/components/composer-body';
|
||||||
import Alert from 'flarum/components/alert';
|
import Alert from 'flarum/components/alert';
|
||||||
import ActionButton from 'flarum/components/action-button';
|
import ActionButton from 'flarum/components/action-button';
|
||||||
|
import icon from 'flarum/helpers/icon';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
The composer body for editing a post. Sets the initial content to the
|
The composer body for editing a post. Sets the initial content to the
|
||||||
|
@ -23,7 +24,7 @@ export default class EditComposer extends ComposerBody {
|
||||||
var post = this.props.post;
|
var post = this.props.post;
|
||||||
|
|
||||||
items.add('title', m('h3', [
|
items.add('title', m('h3', [
|
||||||
'Editing ',
|
icon('pencil'), ' ',
|
||||||
m('a', {href: app.route.discussion(post.discussion(), post.number()), config: m.route}, 'Post #'+post.number()),
|
m('a', {href: app.route.discussion(post.discussion(), post.number()), config: m.route}, 'Post #'+post.number()),
|
||||||
' in ', post.discussion().title()
|
' in ', post.discussion().title()
|
||||||
]));
|
]));
|
||||||
|
|
|
@ -36,6 +36,9 @@
|
||||||
height: auto;
|
height: auto;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
& .fa {
|
||||||
|
font-size: 14px;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.composer-controls {
|
.composer-controls {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user