Don't send requests twice (Fixes #1307)

This commit is contained in:
Gregory Schier 2018-12-15 20:34:42 -05:00
parent efdb30a8a5
commit 5adf101d83

View File

@ -37,7 +37,7 @@ type Props = {
type State = { type State = {
currentInterval: number | null, currentInterval: number | null,
currentTimeout: number | null, currentTimeout: number | null,
downloadPath: string | null downloadPath: string | null,
}; };
@autobind @autobind
@ -284,11 +284,11 @@ class RequestUrlBar extends React.PureComponent<Props, State> {
className="urlbar__send-btn" className="urlbar__send-btn"
onContextMenu={this._handleMetaClickSend} onContextMenu={this._handleMetaClickSend}
onClick={this._handleClickSend} onClick={this._handleClickSend}
type="submit"> type="button">
{downloadPath ? 'Download' : 'Send'} {downloadPath ? 'Download' : 'Send'}
</DropdownButton> </DropdownButton>
<DropdownDivider>Basic</DropdownDivider> <DropdownDivider>Basic</DropdownDivider>
<DropdownItem type="submit"> <DropdownItem onClick={this._handleClickSend}>
<i className="fa fa-arrow-circle-o-right" /> Send Now <i className="fa fa-arrow-circle-o-right" /> Send Now
<DropdownHint hotkey={hotkeys.SEND_REQUEST} /> <DropdownHint hotkey={hotkeys.SEND_REQUEST} />
</DropdownItem> </DropdownItem>