Hide "mark all as read" button from guests

This commit is contained in:
Toby Zerner 2015-05-27 16:19:40 +09:30
parent cb0a47d5a1
commit fab2146a31

View File

@ -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()