mirror of
https://github.com/flarum/framework.git
synced 2024-12-12 06:03:39 +08:00
Hide "mark all as read" button from guests
This commit is contained in:
parent
cb0a47d5a1
commit
fab2146a31
|
@ -105,12 +105,12 @@ export default class IndexPage extends Component {
|
|||
}),
|
||||
]),
|
||||
m('div.index-toolbar-action', [
|
||||
ActionButton.component({
|
||||
app.session.user() ? ActionButton.component({
|
||||
title: 'Mark All as Read',
|
||||
icon: 'check',
|
||||
className: 'control-markAllAsRead btn btn-default btn-icon',
|
||||
onclick: this.markAllAsRead.bind(this)
|
||||
})
|
||||
}) : ''
|
||||
])
|
||||
]),
|
||||
app.cache.discussionList.view()
|
||||
|
|
Loading…
Reference in New Issue
Block a user