fix(attachments): Double-click to view instead of single-click

This is related to T2309
This commit is contained in:
Ben Gotow 2015-07-15 13:49:51 -07:00
parent c5acf8fcb2
commit 38c6f8b866
2 changed files with 2 additions and 2 deletions

View file

@ -50,7 +50,7 @@ class AttachmentComponent extends React.Component
render: =>
<AttachmentDragContainer downloadUrl={@_getDragDownloadURL()}>
<div className="inner" onClick={@_onClickView}>
<div className="inner" onDoubleClick={@_onClickView}>
<span className={"progress-bar-wrap state-#{@props.download?.state ? ""}"}>
<span className="progress-background"></span>
<span className="progress-foreground" style={@_downloadProgressStyle()}></span>

View file

@ -15,7 +15,7 @@ class ImageAttachmentComponent extends AttachmentComponent
{@_renderFileActions()}
<div className="file-preview" onClick={@_onClickView}>
<div className="file-preview" onDoubleClick={@_onClickView}>
<div className="file-name-container">
<div className="file-name">{@props.file.displayName()}</div>
</div>