diff options
Diffstat (limited to 'web/src/js/components/flowview/contentview.js')
-rw-r--r-- | web/src/js/components/flowview/contentview.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/web/src/js/components/flowview/contentview.js b/web/src/js/components/flowview/contentview.js index e4d11997..828c6d08 100644 --- a/web/src/js/components/flowview/contentview.js +++ b/web/src/js/components/flowview/contentview.js @@ -219,10 +219,14 @@ var ContentView = React.createClass({ return <TooLarge {...this.props} onClick={this.displayLarge}/>; } + var downloadUrl = MessageUtils.getContentURL(this.props.flow, message); + return <div> <this.state.View {...this.props} /> - <div className="text-center"> + <div className="view-options text-center"> <ViewSelector selectView={this.selectView} active={this.state.View} message={message}/> + + <a className="btn btn-default btn-xs" href={downloadUrl}><i className="fa fa-download"/></a> </div> </div>; } |