mirror of
https://github.com/flarum/framework.git
synced 2024-12-13 07:03:35 +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', [
|
m('div.index-toolbar-action', [
|
||||||
ActionButton.component({
|
app.session.user() ? ActionButton.component({
|
||||||
title: 'Mark All as Read',
|
title: 'Mark All as Read',
|
||||||
icon: 'check',
|
icon: 'check',
|
||||||
className: 'control-markAllAsRead btn btn-default btn-icon',
|
className: 'control-markAllAsRead btn btn-default btn-icon',
|
||||||
onclick: this.markAllAsRead.bind(this)
|
onclick: this.markAllAsRead.bind(this)
|
||||||
})
|
}) : ''
|
||||||
])
|
])
|
||||||
]),
|
]),
|
||||||
app.cache.discussionList.view()
|
app.cache.discussionList.view()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user