fix(unread-icon): Show the correct icon for the action

This commit is contained in:
Ben Gotow 2015-12-04 16:38:26 -08:00
parent f509a41ce7
commit f308e51f62

View file

@ -89,8 +89,8 @@ class ThreadBulkToggleUnreadButton extends React.Component
selection: React.PropTypes.object.isRequired
render: =>
canMarkUnread = not @props.selection.items().every (s) -> s.unread is true
fragment = if canMarkUnread then "unread" else "read"
postClickUnreadState = _.every @props.selection.items(), (t) -> _.isMatch(t, {unread: false})
fragment = if postClickUnreadState then "unread" else "read"
<button style={order:-105}
className="btn btn-toolbar"