diff --git a/js/component/link.js b/js/component/link.js index b33fc0531..559662d2b 100644 --- a/js/component/link.js +++ b/js/component/link.js @@ -114,6 +114,12 @@ 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) { /** @@ -142,7 +148,9 @@ export let DropDown = React.createClass({
{this.props.label} - + {this.props.showCaret + ? + : null} {this.state.menuOpen ? @@ -262,11 +270,12 @@ export let DownloadLink = React.createClass({ linkBlock = ( + onClick={this.handleClick} showCaret={!this.state.attemptingDownload}> {dropDownItems} + onClick={this.handleClick} showCaret={!this.state.attemptingDownload} + style={{width: `${progress * 100}%`}}> {dropDownItems}