mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-09-23 16:56:08 +08:00
ba00372645
Summary: Focused Content Store should notify observers when focused items change, not just when they're reassigned Popovers should have a `direction` and optional event onOpened Menu divider documentation was wrong, menus should support checked items by default Pressing escape in a popover's input should dismiss the popover Other changes Remove specs that make no sense anymore Small tweak to report build breaking. Shouldn't happen often ;) Test Plan: Run tests, which will now phone home if they break Reviewers: evan Reviewed By: evan Differential Revision: https://review.inboxapp.com/D1493
23 lines
565 B
CoffeeScript
23 lines
565 B
CoffeeScript
_ = require 'underscore-plus'
|
|
React = require 'react'
|
|
{Actions, Utils} = require 'inbox-exports'
|
|
{RetinaImg} = require 'ui-components'
|
|
|
|
class ArchiveButton extends React.Component
|
|
@displayName: "ArchiveButton"
|
|
|
|
render: =>
|
|
<button className="btn btn-toolbar btn-archive"
|
|
data-tooltip="Archive"
|
|
onClick={@_onArchive}>
|
|
<RetinaImg name="toolbar-archive.png" />
|
|
</button>
|
|
|
|
_onArchive: (e) =>
|
|
return unless Utils.nodeIsVisible(e.currentTarget)
|
|
Actions.archive()
|
|
e.stopPropagation()
|
|
|
|
|
|
module.exports = ArchiveButton
|