mirror of
https://github.com/flarum/framework.git
synced 2025-04-01 21:55:16 +08:00
Hide "mark all as read" button from guests
This commit is contained in:
parent
796c2590a2
commit
c5d820a92d
@ -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…
x
Reference in New Issue
Block a user