mirror of
https://github.com/flarum/core.git
synced 2025-07-18 07:11:17 +02:00
Replace Ember app with Mithril app
This commit is contained in:
13
js/forum/src/components/post-header-toggle.js
Normal file
13
js/forum/src/components/post-header-toggle.js
Normal file
@@ -0,0 +1,13 @@
|
||||
import Component from 'flarum/component';
|
||||
import icon from 'flarum/helpers/icon';
|
||||
|
||||
/**
|
||||
Component for the toggle button in a post header. Toggles the
|
||||
`parent.revealContent` property when clicked. Only displays if the supplied
|
||||
post is not hidden.
|
||||
*/
|
||||
export default class PostHeaderToggle extends Component {
|
||||
view() {
|
||||
return m('a.btn.btn-default.btn-more[href=javascript:;]', {onclick: this.props.toggle}, icon('ellipsis-h'));
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user