mirror of
https://github.com/Kong/insomnia
synced 2024-11-08 14:49:53 +00:00
Don't send requests twice (Fixes #1307)
This commit is contained in:
parent
efdb30a8a5
commit
5adf101d83
@ -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>
|
||||||
|
Loading…
Reference in New Issue
Block a user