diff --git a/js/component/link.js b/js/component/link.js index 559662d2b..ed8ab4a28 100644 --- a/js/component/link.js +++ b/js/component/link.js @@ -114,12 +114,6 @@ export let ToolTipLink = React.createClass({ export let DropDown = React.createClass({ propTypes: { onCaretClick: React.PropTypes.func, - showCaret: React.PropTypes.bool, - }, - getDefaultProps: function() { - return { - showCaret: true, - }; }, handleCaretClicked: function(event) { /** @@ -148,9 +142,7 @@ export let DropDown = React.createClass({
{this.props.label} - {this.props.showCaret - ? - : null} + {this.state.menuOpen ? @@ -264,18 +256,19 @@ export let DownloadLink = React.createClass({ ]; let linkBlock; - if (this.state.attemptingDownload || this.props.state == 'downloading') { - const progress = this.state.attemptingDownload ? 0 : this.props.progress; - const label = `${parseInt(progress * 100)}% complete`; + if (this.state.attemptingDownload) { + linkBlock = + } else if (this.props.state == 'downloading') { + const label = `${parseInt(this.props.progress * 100)}% complete`; linkBlock = ( + onClick={this.handleClick}> {dropDownItems} + onClick={this.handleClick} style={{width: `${this.props.progress * 100}%`}}> {dropDownItems}