mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-03-09 22:45:16 +08:00
fix(unread-icon): Show the correct icon for the action
This commit is contained in:
parent
f509a41ce7
commit
f308e51f62
1 changed files with 2 additions and 2 deletions
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue